summaryrefslogtreecommitdiffstats
path: root/test/option-n.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-31 06:03:14 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-31 06:03:14 (GMT)
commita7669bc6a02999a3375c7e732a27ded5f9bb9935 (patch)
tree61beac46b020f72a91ce050f1dd1c6f407015352 /test/option-n.py
parent37bd22efa578e0c407a4e50fd3c40e20193a9260 (diff)
downloadSCons-a7669bc6a02999a3375c7e732a27ded5f9bb9935.zip
SCons-a7669bc6a02999a3375c7e732a27ded5f9bb9935.tar.gz
SCons-a7669bc6a02999a3375c7e732a27ded5f9bb9935.tar.bz2
Make -c work with -n: don't remove the files!
Diffstat (limited to 'test/option-n.py')
-rw-r--r--test/option-n.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/option-n.py b/test/option-n.py
index f0f6e11..f436dd2 100644
--- a/test/option-n.py
+++ b/test/option-n.py
@@ -81,5 +81,18 @@ test.run(arguments = '--recon ' + args, stdout = expect)
test.fail_test(os.path.exists(test.workpath('f1.out')))
test.fail_test(os.path.exists(test.workpath('f2.out')))
+test.run(arguments = args)
+test.fail_test(not os.path.exists(test.workpath('f1.out')))
+test.fail_test(not os.path.exists(test.workpath('f2.out')))
+
+expect = "Removed f1.out\nRemoved f2.out\n"
+
+test.run(arguments = '-n -c ' + args, stdout = expect)
+
+test.run(arguments = '-c -n ' + args, stdout = expect)
+
+test.fail_test(not os.path.exists(test.workpath('f1.out')))
+test.fail_test(not os.path.exists(test.workpath('f2.out')))
+
test.pass_test()