summaryrefslogtreecommitdiffstats
path: root/test/YACC.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-04-22 22:45:23 (GMT)
committerSteven Knight <knight@baldmt.com>2002-04-22 22:45:23 (GMT)
commit359e8303a9423cb0ed8ee250042941866eaa64c8 (patch)
tree9ccd8c13b988e3a0969a1bad5e1baeed6d9f0a04 /test/YACC.py
parent094f305d5d6e668a8273b1efc67d89e2414314f6 (diff)
downloadSCons-359e8303a9423cb0ed8ee250042941866eaa64c8.zip
SCons-359e8303a9423cb0ed8ee250042941866eaa64c8.tar.gz
SCons-359e8303a9423cb0ed8ee250042941866eaa64c8.tar.bz2
Small fix for yacc: only look for a .h file if they used the -d option. (Charles Crain)
Diffstat (limited to 'test/YACC.py')
-rw-r--r--test/YACC.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/YACC.py b/test/YACC.py
index 486200c..8fea904 100644
--- a/test/YACC.py
+++ b/test/YACC.py
@@ -140,12 +140,16 @@ newline: '\n';
test.run(arguments = 'foo' + _exe, stderr = None)
+ test.up_to_date(arguments = 'foo' + _exe)
+
test.fail_test(os.path.exists(test.workpath('wrapper.out')))
test.run(program = test.workpath('foo'), stdin = "a\n", stdout = "foo.y\n")
test.run(arguments = 'bar' + _exe)
+ test.up_to_date(arguments = 'bar' + _exe)
+
test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
test.run(program = test.workpath('bar'), stdin = "b\n", stdout = "bar.y\n")