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/Ignore.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/Ignore.py')
-rw-r--r-- | test/Ignore.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Ignore.py b/test/Ignore.py index 5e9650e..06db727 100644 --- a/test/Ignore.py +++ b/test/Ignore.py @@ -108,4 +108,18 @@ test.fail_test(test.read(['subdir', 'f3.out']) != test.up_to_date(arguments = '.') +# +test.write('SConstruct', """\ +env = Environment() +file1 = File('file1') +file2 = File('file2') +env.Ignore(file1, [[file2, 'file3']]) +""") + +test.run(status = 2, stderr = """ +scons: *** attempted to ignore a non-Node dependency of file1: +\t['file2', 'file3'] is a <type 'list'>, not a Node +File "SConstruct", line 4, in ? +""") + test.pass_test() |