diff options
author | Steven Knight <knight@baldmt.com> | 2004-07-30 17:43:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-07-30 17:43:29 (GMT) |
commit | 5e99c7b81daa264a1dad5548e62892963fbd8118 (patch) | |
tree | 9a53e3b6b342cb891065c7e4d11c50f5466428a9 /test/CPPPATH.py | |
parent | b5f762338c061c48728683d2ee0f037cebd0ab61 (diff) | |
download | SCons-5e99c7b81daa264a1dad5548e62892963fbd8118.zip SCons-5e99c7b81daa264a1dad5548e62892963fbd8118.tar.gz SCons-5e99c7b81daa264a1dad5548e62892963fbd8118.tar.bz2 |
Fix null entries in CPPPATH. (Gary Oberbrunner)
Diffstat (limited to 'test/CPPPATH.py')
-rw-r--r-- | test/CPPPATH.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/CPPPATH.py b/test/CPPPATH.py index cb6969e..05a61e8 100644 --- a/test/CPPPATH.py +++ b/test/CPPPATH.py @@ -194,14 +194,20 @@ test.run(program = test.workpath(variant_prog), test.up_to_date(arguments = args) -# Check that a null-string CPPPATH doesn't blow up. +# Check that neither a null-string CPPPATH nor a +# a CPPPATH containing null values blows up. test.write('SConstruct', """ env = Environment(CPPPATH = '') -env.Library('foo', source = 'empty.c') +env.Library('one', source = 'empty1.c') +env = Environment(CPPPATH = [None]) +env.Library('two', source = 'empty2.c') +env = Environment(CPPPATH = ['']) +env.Library('three', source = 'empty3.c') """) -test.write('empty.c', """ -""") +test.write('empty1.c', "\n") +test.write('empty2.c', "\n") +test.write('empty3.c', "\n") test.run(arguments = '.', stderr=TestSCons.noisy_ar, |