summaryrefslogtreecommitdiff
path: root/test/Clean
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-08-03 04:53:52 +0000
committerSteven Knight <knight@baldmt.com>2009-08-03 04:53:52 +0000
commit1aba0ca00d56e2dfc739a43025099977e226f2c1 (patch)
treea4ed59fa6956cfc2a9c4585ee862509ac9341ece /test/Clean
parent04c41de7ad34225adbb1f1a8bcdbf93680920f70 (diff)
downloadscons-1aba0ca00d56e2dfc739a43025099977e226f2c1.tar.gz
Solaris test portability fixes.
Diffstat (limited to 'test/Clean')
-rw-r--r--test/Clean/mkfifo.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/Clean/mkfifo.py b/test/Clean/mkfifo.py
index 4cdb8fa6..0ef7662c 100644
--- a/test/Clean/mkfifo.py
+++ b/test/Clean/mkfifo.py
@@ -48,13 +48,23 @@ test.run(arguments='-Q -q', stdout='Mkdir("testdir")\n')
os.mkfifo('testdir/namedpipe')
-expect = """\
+expect1 = """\
Mkdir("testdir")
Path '%s' exists but isn't a file or directory.
scons: Could not remove 'testdir': Directory not empty
""" % os.path.join('testdir', 'namedpipe')
-test.run(arguments='-c -Q -q', stdout=expect)
+expect2 = """\
+Mkdir("testdir")
+Path '%s' exists but isn't a file or directory.
+scons: Could not remove 'testdir': File exists
+""" % os.path.join('testdir', 'namedpipe')
+
+test.run(arguments='-c -Q -q')
+
+if test.stdout() not in [expect1, expect2]:
+ test.diff(expect1, test.stdout(), 'STDOUT ')
+ test.fail_test()
test.must_exist(test.workpath('testdir/namedpipe'))