summaryrefslogtreecommitdiffstats
path: root/test/SWIG
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-04 02:44:26 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-04 02:44:26 (GMT)
commit3bf4475522d2a24910b147a607dcd9f0d980097f (patch)
treef84f598ecc6c449fd1784b76ca52b7330d88f230 /test/SWIG
parent101ccb287767fbe9509726a4af66f46d4caf2ea9 (diff)
downloadSCons-3bf4475522d2a24910b147a607dcd9f0d980097f.zip
SCons-3bf4475522d2a24910b147a607dcd9f0d980097f.tar.gz
SCons-3bf4475522d2a24910b147a607dcd9f0d980097f.tar.bz2
Fix Fedora Core 3 test portability.
Diffstat (limited to 'test/SWIG')
-rw-r--r--test/SWIG/SWIG.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/SWIG/SWIG.py b/test/SWIG/SWIG.py
index af76d6c..21a6a18 100644
--- a/test/SWIG/SWIG.py
+++ b/test/SWIG/SWIG.py
@@ -121,15 +121,15 @@ if swig:
version = sys.version[:3] # see also sys.prefix documentation
# handle testing on other platforms:
+ ldmodule_prefix = '_'
+
frameworks = ''
- ldmodule_prefix = ''
platform_sys_prefix = sys.prefix
if sys.platform == 'darwin':
# OS X has a built-in Python but no static libpython
# so you should link to it using apple's 'framework' scheme.
# (see top of file for further explanation)
frameworks = '-framework Python'
- ldmodule_prefix = '_'
platform_sys_prefix = '/System/Library/Frameworks/Python.framework/Versions/%s/' % version
test.write("wrapper.py",
@@ -191,7 +191,7 @@ extern char *bar_string();
test.run(arguments = ldmodule_prefix+'foo' + _dll)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
test.run(program = python, stdin = """\
import foo
@@ -204,7 +204,7 @@ This is foo.c!
test.run(arguments = ldmodule_prefix+'bar' + _dll)
- test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+ test.must_match('wrapper.out', "wrapper.py\n")
test.run(program = python, stdin = """\
import foo