# Writing this to accomodate both our in-line tool chain and the
# MSVC command lines is too hard, and will be completely unnecessary
# some day when we separate our tests. Punt for now.
-test.no_result(sys.platform == 'win32')
+if sys.platform == 'win32':
+ test.skip_test('Skipping on win32.\n')
test = TestSCons.TestSCons()
if sys.platform == 'win32':
- sys.stderr.write('Cannot set SHELL separately from other variables on Windows.\n')
- test.no_result(1)
+ msg = 'Cannot set SHELL separately from other variables on Windows.\n'
+ test.skip_test(msg)
my_shell = test.workpath('my_shell.py')
test = TestSCons.TestSCons()
if not hasattr(os, 'symlink'):
- print "No os.symlink() method, no symlinks to test."
- test.no_result(1)
+ test.skip_test('No os.symlink() method, no symlinks to test.\n')
test.subdir('obj',
['obj', 'subdir'],
test = TestSCons.TestSCons()
if not hasattr(os, 'symlink'):
- print "No os.symlink() method, no symlinks to test."
- test.no_result(1)
+ test.skip_test('No os.symlink() method, no symlinks to test.\n')
foo_obj = 'foo' + TestSCons._obj
test = TestSCons.TestSCons()
if not hasattr(os, 'symlink'):
- print "No os.symlink() method, no symlinks to test."
- test.no_result(1)
+ test.skip_test('No os.symlink() method, no symlinks to test.\n')
test.write('SConstruct', """
Command('file.out', 'file.in', Copy('$TARGET', '$SOURCE'))