forked from pool/bison
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
From 7439c5c0f94940884e998c06b910476c6f6145b5 Mon Sep 17 00:00:00 2001
|
||
|
From: Joel E. Denny <jdenny@clemson.edu>
|
||
|
Date: Mon, 05 Oct 2009 02:59:18 +0000
|
||
|
Subject: tests: skip tests of file names that platform does not support.
|
||
|
|
||
|
Reported by Michael Raskin at
|
||
|
<http://lists.gnu.org/archive/html/bug-bison/2009-09/msg00001.html>.
|
||
|
* THANKS (Michael Raskin): Add.
|
||
|
* tests/output.at (AT_CHECK_OUTPUT_FILE_NAME): Fix. Cygwin used
|
||
|
to fail at least for file names containing ":" or "\".
|
||
|
(cherry picked from commit 2ceb8c617cac934b45f101ab44508d72239c894b)
|
||
|
|
||
|
Conflicts:
|
||
|
|
||
|
THANKS
|
||
|
---
|
||
|
diff --git a/tests/output.at b/tests/output.at
|
||
|
index 971df1e..31298d7 100644
|
||
|
--- a/tests/output.at
|
||
|
+++ b/tests/output.at
|
||
|
@@ -175,6 +175,10 @@ AT_CHECK_CONFLICTING_OUTPUT([foo.y], [], [-o foo.y],
|
||
|
m4_define([AT_CHECK_OUTPUT_FILE_NAME],
|
||
|
[AT_SETUP([Output file name: $1])
|
||
|
|
||
|
+# Skip if platform doesn't support file name. For example, Cygwin
|
||
|
+# doesn't support file names containing ":" or "\".
|
||
|
+AT_CHECK([[touch "]AS_ESCAPE([$1[.tmp]])[" || exit 77]])
|
||
|
+
|
||
|
AT_DATA_GRAMMAR([glr.y],
|
||
|
[[%glr-parser
|
||
|
%code {
|
||
|
--
|
||
|
cgit v0.8.2.1
|