aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-19 16:23:28 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-19 16:23:28 -0800
commit5c6e9a38d1773c01e6017cbba970a69d93228614 (patch)
tree5e941db111557f1051ca7a73f69aec24163d72dc
parenta1532fb584085d6f53632968a6e2aba6d91cebf7 (diff)
add LINKABLE in all dlfcn tests
-rw-r--r--tests/runner.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 3f9c352c..de884d25 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2554,6 +2554,8 @@ def process(filename):
self.do_run(main, 'supp: 54,2\nmain: 56\nsupp see: 543\nmain see: 76\nok.')
def test_dlfcn_basic(self):
+ Settings.LINKABLE = 1
+
lib_src = '''
#include <cstdio>
@@ -2603,6 +2605,8 @@ def process(filename):
post_build=add_pre_run_and_checks)
def test_dlfcn_qsort(self):
+ Settings.LINKABLE = 1
+
if Settings.USE_TYPED_ARRAYS == 2:
Settings.CORRECT_SIGNS = 1 # Needed for unsafe optimizations
@@ -2795,6 +2799,8 @@ def process(filename):
post_build=add_pre_run_and_checks)
def test_dlfcn_alias(self):
+ Settings.LINKABLE = 1
+
if Building.LLVM_OPTS == 2: return self.skip('LLVM LTO will optimize away stuff we expect from the shared library')
lib_src = r'''
@@ -2847,6 +2853,8 @@ def process(filename):
Settings.INCLUDE_FULL_LIBRARY = 0
def test_dlfcn_varargs(self):
+ Settings.LINKABLE = 1
+
if Building.LLVM_OPTS == 2: return self.skip('LLVM LTO will optimize things that prevent shared objects from working')
if Settings.QUANTUM_SIZE == 1: return self.skip('FIXME: Add support for this')