Commits

Anonymous committed ef6cbc6

Fix a number of small problems in tests.

  • Participants
  • Parent commits e879d5c

Comments (0)

Files changed (6)

File test/Depends.py

 test.write(['subdir', 'bar.dep'], "subdir/bar.dep 1\n")
 
 #XXXtest.run(arguments = '.')
-test.run(arguments = 'f1.out f2.out f3.out subdir/f4.out')
+#test.run(arguments = 'f1.out f2.out f3.out subdir/f4.out')
+test.run(arguments = 'f1.out f2.out f3.out')
 
 test.fail_test(test.read('f1.out') != "f1.in\nsubdir/foo.dep 1\n")
 test.fail_test(test.read('f2.out') != "f2.in\nsubdir/foo.dep 1\n")
 test.write(['subdir', 'bar.dep'], "subdir/bar.dep 2\n")
 
 #XXXtest.run(arguments = '.')
-test.run(arguments = 'f1.out f2.out f3.out subdir/f4.out')
+#test.run(arguments = 'f1.out f2.out f3.out subdir/f4.out')
+test.run(arguments = 'f1.out f2.out f3.out')
 
 test.fail_test(test.read('f1.out') != "f1.in\nsubdir/foo.dep 2\n")
 test.fail_test(test.read('f2.out') != "f2.in\nsubdir/foo.dep 2\n")
 test.write(['subdir', 'bar.dep'], "subdir/bar.dep 3\n")
 
 #XXXtest.run(arguments = '.')
-test.run(arguments = 'f1.out f2.out f3.out subdir/f4.out')
+#test.run(arguments = 'f1.out f2.out f3.out subdir/f4.out')
+test.run(arguments = 'f1.out f2.out f3.out')
 
 test.fail_test(test.read('f1.out') != "f1.in\nsubdir/foo.dep 2\n")
 test.fail_test(test.read('f2.out') != "f2.in\nsubdir/foo.dep 2\n")

File test/option--.py

 env.MyBuild(target = '-f2.out', source = 'f2.in')
 """ % python)
 
+test.write('f1.in', "f1.in\n")
+test.write('f2.in', "f2.in\n")
+
 expect = "%s build.py -f1.out\n%s build.py -f2.out\n" % (python, python)
 
 test.run(arguments = '-- -f1.out -f2.out', stdout = expect)
+
 test.fail_test(not os.path.exists(test.workpath('-f1.out')))
 test.fail_test(not os.path.exists(test.workpath('-f2.out')))
 

File test/option-i.py

 env.Succeed(target = 'bbb.out', source = 'bbb.1')
 """ % (python, python))
 
+test.write('aaa.in', "aaa.in\n")
+test.write('bbb.in', "bbb.in\n")
+
 test.run(arguments = 'aaa.1 aaa.out bbb.1 bbb.out',
          stderr = 'scons: *** [aaa.1] Error 1\n')
 

File test/option-k.py

 env.Succeed(target = 'bbb.out', source = 'bbb.in')
 """ % (python, python))
 
+test.write('aaa.in', "aaa.in\n")
+test.write('bbb.in', "bbb.in\n")
+
 test.run(arguments = 'aaa.out bbb.out',
          stderr =
          'scons: *** [aaa.1] Error 1\n')

File test/option-n.py

 env.MyBuild(target = 'f2.out', source = 'f2.in')
 """ % python)
 
+test.write('f1.in', "f1.in\n")
+test.write('f2.in', "f2.in\n")
+
 args = 'f1.out f2.out'
 expect = "%s build.py f1.out\n%s build.py f2.out\n" % (python, python)
 
 test.fail_test(not os.path.exists(test.workpath('f1.out')))
 test.fail_test(not os.path.exists(test.workpath('f2.out')))
 
-os.unlink(test.workpath('f1.out'))
-os.unlink(test.workpath('f2.out'))
+test.unlink('f1.out')
+test.unlink('f2.out')
 
 test.run(arguments = '-n ' + args, stdout = expect)
 test.fail_test(os.path.exists(test.workpath('f1.out')))

File test/option-s.py

 env.MyBuild(target = 'f2.out', source = 'f2.in')
 """ % python)
 
+test.write('f1.in', "f1.in\n")
+test.write('f2.in', "f2.in\n")
+
 test.run(arguments = '-s f1.out f2.out', stdout = "")
 test.fail_test(not os.path.exists(test.workpath('f1.out')))
 test.fail_test(not os.path.exists(test.workpath('f2.out')))
 
-os.unlink(test.workpath('f1.out'))
-os.unlink(test.workpath('f2.out'))
+test.unlink('f1.out')
+test.unlink('f2.out')
 
 test.run(arguments = '--silent f1.out f2.out', stdout = "")
 test.fail_test(not os.path.exists(test.workpath('f1.out')))
 test.fail_test(not os.path.exists(test.workpath('f2.out')))
 
-os.unlink(test.workpath('f1.out'))
-os.unlink(test.workpath('f2.out'))
+test.unlink('f1.out')
+test.unlink('f2.out')
 
 test.run(arguments = '--quiet f1.out f2.out', stdout = "")
 test.fail_test(not os.path.exists(test.workpath('f1.out')))