aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-29 20:28:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-29 20:28:57 -0700
commita326e6a1ec7c124dd4e74a38d3c8948b3ace92bc (patch)
treef95402e3c50a04c59921813389daef29efe51552 /tests/runner.py
parent0e9344a42800afd65b3c74c86e79ed78c15161f0 (diff)
backout previous broken commit
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/runner.py b/tests/runner.py
index fdf15d44..4b433b13 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1924,24 +1924,14 @@ if 'benchmark' not in sys.argv:
output_nicerizer=lambda x: x.replace('\n', '*'))
def test_dlfcn_data_and_fptr(self):
- global LLVM_OPTS
- if LLVM_OPTS: return self.skip() # LLVM opts will optimize out parent_func
-
global BUILD_AS_SHARED_LIB, EXPORTED_FUNCTIONS, EXPORTED_GLOBALS
lib_src = '''
#include <stdio.h>
int global = 42;
- extern void parent_func(); // a function that is defined in the parent
-
void lib_fptr() {
printf("Second calling lib_fptr from main.\\n");
- parent_func();
- // call it also through a pointer, to check indexizing
- void (*p_f)();
- p_f = parent_func;
- p_f();
}
void (*func(int x, void(*fptr)()))() {
@@ -1966,10 +1956,6 @@ if 'benchmark' not in sys.argv:
FUNCTYPE func;
- void parent_func() {
- printf("parent_func called from child\\n");
- }
-
void main_fptr() {
printf("First calling main_fptr from lib.\\n");
}
@@ -2011,7 +1997,7 @@ if 'benchmark' not in sys.argv:
BUILD_AS_SHARED_LIB = 0
EXPORTED_FUNCTIONS = ['_main']
EXPORTED_GLOBALS = []
- self.do_test(src, 'In func: 13*First calling main_fptr from lib.*Second calling lib_fptr from main.*parent_func called from child*parent_func called from child*Var: 42*',
+ self.do_test(src, 'In func: 13*First calling main_fptr from lib.*Second calling lib_fptr from main.*Var: 42*',
output_nicerizer=lambda x: x.replace('\n', '*'))
def test_strtod(self):