From: stevenknight Date: Tue, 22 Jul 2003 12:47:32 +0000 (+0000) Subject: M4 test portability. (Chad Austin) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e2a656d9f8cd38e319b527b33aac4b49c9faa6a;p=scons.git M4 test portability. (Chad Austin) git-svn-id: http://scons.tigris.org/svn/scons/trunk@745 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 33e481de..4810df63 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -20,6 +20,8 @@ RELEASE 0.XX - XXX - Add a DefaultEnvironment() function that only creates a default environment on-demand (for fetching source files, e.g.). + - Portability fix for test/M4.py. + From Steven Knight: - Tighten up the scons -H help output. diff --git a/test/M4.py b/test/M4.py index 0e7e809a..cc355408 100644 --- a/test/M4.py +++ b/test/M4.py @@ -99,8 +99,8 @@ bar.M4(target = 'bar', source = 'bar.m4') test.fail_test(test.read('wrapper.out') != "wrapper.py\n") - test.fail_test(test.read('foo.x') != "line 1\nfff\nline 3\n") + test.fail_test(test.read('foo.x', 'r') != "line 1\nfff\nline 3\n") - test.fail_test(test.read('bar') != "line 1\nbbb\nline 3\n") + test.fail_test(test.read('bar', 'r') != "line 1\nbbb\nline 3\n") test.pass_test()