diff options
author | Steven Knight <knight@baldmt.com> | 2004-01-11 16:03:15 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-01-11 16:03:15 (GMT) |
commit | 9cc5ac377415fc2404265c614f9cf76b877fece2 (patch) | |
tree | 3067e5d198248d3c8d124f43426bf995a24ffa4f /test/Program.py | |
parent | 58d722532fa83041c28b6ae6836cb731d9ec8e55 (diff) | |
download | SCons-9cc5ac377415fc2404265c614f9cf76b877fece2.zip SCons-9cc5ac377415fc2404265c614f9cf76b877fece2.tar.gz SCons-9cc5ac377415fc2404265c614f9cf76b877fece2.tar.bz2 |
Better error handling if someone tries to add a non-Node as a source, dependency or ignored dependency of a Node.
Diffstat (limited to 'test/Program.py')
-rw-r--r-- | test/Program.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Program.py b/test/Program.py index f231ac1..7c0eb46 100644 --- a/test/Program.py +++ b/test/Program.py @@ -327,4 +327,17 @@ test.fail_test(not (oldtime3 == os.path.getmtime(foo3))) test.fail_test(not (oldtime4 == os.path.getmtime(foo4))) test.fail_test(not (oldtime5 == os.path.getmtime(foo5))) +# +test.write('SConstruct', """\ +file1 = File('file1.c') +file2 = File('file2.c') +Program('foo', [file1, [file2, 'file3.c']]) +""") + +test.run(status = 2, stderr = """ +scons: *** attempted to add a non-Node as source of foo: +\t['file2.c', 'file3.c'] is a <type 'list'>, not a Node +File "SConstruct", line 3, in ? +""") + test.pass_test() |