[pypy-commit] pypy default: test the same way we build after translate
mattip
noreply at buildbot.pypy.org
Fri Jan 30 11:15:38 CET 2015
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r75585:fa382e9b1c95
Date: 2015-01-30 12:07 +0200
http://bitbucket.org/pypy/pypy/changeset/fa382e9b1c95/
Log: test the same way we build after translate
diff --git a/rpython/translator/c/test/test_standalone.py b/rpython/translator/c/test/test_standalone.py
--- a/rpython/translator/c/test/test_standalone.py
+++ b/rpython/translator/c/test/test_standalone.py
@@ -808,12 +808,7 @@
t, cbuilder = self.compile(entry_point, shared=True)
assert cbuilder.shared_library_name is not None
assert cbuilder.shared_library_name != cbuilder.executable_name
- if os.name == 'posix':
- library_path = cbuilder.shared_library_name.dirpath()
- if sys.platform == 'darwin':
- monkeypatch.setenv('DYLD_LIBRARY_PATH', library_path)
- else:
- monkeypatch.setenv('LD_LIBRARY_PATH', library_path)
+ #Do not set LD_LIBRARY_PATH, make sure $ORIGIN flag is working
out, err = cbuilder.cmdexec("a b")
assert out == "3"
More information about the pypy-commit
mailing list