summaryrefslogtreecommitdiffstats
path: root/test/YACC/live.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/YACC/live.py')
-rw-r--r--test/YACC/live.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/YACC/live.py b/test/YACC/live.py
index 4934570..0e5f156 100644
--- a/test/YACC/live.py
+++ b/test/YACC/live.py
@@ -103,13 +103,19 @@ graph: GRAPH_T
%%
""")
+import sys
+if sys.platform == 'darwin':
+ file_hpp = 'file.cpp.h'
+else:
+ file_hpp = 'file.hpp'
+
test.write("hello.cpp", """\
-#include "file.hpp"
+#include "%(file_hpp)s"
int main()
{
}
-""")
+""" % locals())
test.write('foo.y', yacc % 'foo.y')