From: stevenknight Date: Thu, 16 Apr 2009 15:41:23 +0000 (+0000) Subject: Win32 fixes: update error message, accomodate re match. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7fa78db7142aab61fbef418b023f68dfb769f749;p=scons.git Win32 fixes: update error message, accomodate re match. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4094 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/Win32/bad-drive.py b/test/Win32/bad-drive.py index 513f7fa7..200ae02b 100644 --- a/test/Win32/bad-drive.py +++ b/test/Win32/bad-drive.py @@ -86,13 +86,13 @@ test.run(arguments = 'aaa.out') test.fail_test(test.read('aaa.out') != "aaa.in\n") # This next test used to provide a slightly different error message: -# "scons: *** Do not know how to make target `%snot_mentioned'. Stop.\n" +# "scons: *** Do not know how to make File target `%snot_mentioned'. Stop.\n" # Right now, it doesn't seem important enough to track down exactly # why this changed and fix it, but we'll preserve it here in case it # becomes an issue or some refactoring restores the old behavior. test.run(arguments = bad_drive + 'not_mentioned', - stderr = "scons: *** Do not know how to make target `%snot_mentioned'. Stop.\n" % (bad_drive), + stderr = "scons: *** Do not know how to make File target `%snot_mentioned'. Stop.\n" % (bad_drive), status = 2) expect = "scons: *** [%sno_target_1] No drive `%s' for target `%sno_target_1'.\n" % (bad_drive, bad_drive, bad_drive) diff --git a/test/nonexistent.py b/test/nonexistent.py index 770f3b70..4a4bd6df 100644 --- a/test/nonexistent.py +++ b/test/nonexistent.py @@ -31,6 +31,8 @@ or uses a nonexistent source file. __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os.path +import re + import TestSCons test = TestSCons.TestSCons() @@ -51,7 +53,7 @@ test.run(arguments = 'foo', match=TestSCons.match_re_dotall) test.run(arguments = '-k foo/bar foo', - stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % foo_bar, + stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % re.escape(foo_bar), status = 2, match=TestSCons.match_re_dotall)