summaryrefslogtreecommitdiffstats
path: root/test/Scanner.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-04-04 09:07:00 (GMT)
committerSteven Knight <knight@baldmt.com>2002-04-04 09:07:00 (GMT)
commit6603cc0d6643e529da45fef6f85fcc1a0fc02ea4 (patch)
tree4a27de7c3fd70e5af0f257ccc73aab38e343f156 /test/Scanner.py
parenta7669bc6a02999a3375c7e732a27ded5f9bb9935 (diff)
downloadSCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.zip
SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.tar.gz
SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.tar.bz2
Fix --debug=tree for directory targets (Anthony Roach)
Diffstat (limited to 'test/Scanner.py')
-rw-r--r--test/Scanner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Scanner.py b/test/Scanner.py
index 1a02447..dbaa8b5 100644
--- a/test/Scanner.py
+++ b/test/Scanner.py
@@ -61,7 +61,7 @@ import re
include_re = re.compile(r'^include\s+(\S+)$', re.M)
-def kfile_scan(node, env, arg):
+def kfile_scan(node, env, target, arg):
contents = node.get_contents()
includes = include_re.findall(contents)
return includes
@@ -77,7 +77,7 @@ env.Command('foo', 'foo.k', '%s build.py $SOURCES $TARGET')
bar_in = File('bar.in')
env.Command('bar', bar_in, '%s build.py $SOURCES $TARGET')
-bar_in.scanner_set(kscan)
+bar_in.source_scanner = kscan
""" % (python, python))
test.write('foo.k',
@@ -132,4 +132,6 @@ test.fail_test(test.read('foo') != "foo.k 1 line 1\nxxx 2\nyyy 2\nfoo.k 1 line 4
test.fail_test(test.read('bar') != "yyy 2\nbar.in 1 line 2\nbar.in 1 line 3\nzzz 2\n")
+test.run(arguments = 'foo', stdout='scons: "foo" is up to date.\n')
+
test.pass_test()