@@ -2720,7 +2720,6 @@ class Bar {
2720
2720
2721
2721
@needs_dylink
2722
2722
def test_dlfcn_qsort (self ):
2723
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_get_cmp' ])
2724
2723
create_file ('liblib.cpp' , '''
2725
2724
int lib_cmp(const void* left, const void* right) {
2726
2725
const int* a = (const int*) left;
@@ -2739,7 +2738,6 @@ def test_dlfcn_qsort(self):
2739
2738
self .build_dlfcn_lib ('liblib.cpp' )
2740
2739
2741
2740
self .prep_dlfcn_main ()
2742
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' ])
2743
2741
src = '''
2744
2742
#include <stdio.h>
2745
2743
#include <stdlib.h>
@@ -2824,7 +2822,6 @@ def test_dlfcn_data_and_fptr(self):
2824
2822
return lib_fptr;
2825
2823
}
2826
2824
''' )
2827
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_func' ])
2828
2825
self .build_dlfcn_lib ('liblib.cpp' )
2829
2826
2830
2827
self .prep_dlfcn_main ()
@@ -2881,7 +2878,6 @@ def test_dlfcn_data_and_fptr(self):
2881
2878
return 0;
2882
2879
}
2883
2880
'''
2884
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' ])
2885
2881
self .do_run (src , '''\
2886
2882
In func: 13
2887
2883
First calling main_fptr from lib.
@@ -2902,7 +2898,6 @@ def test_dlfcn_varargs(self):
2902
2898
print_ints(2, 13, 42);
2903
2899
}
2904
2900
''' )
2905
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_func' ])
2906
2901
self .build_dlfcn_lib ('liblib.cpp' )
2907
2902
2908
2903
self .prep_dlfcn_main ()
@@ -2935,7 +2930,6 @@ def test_dlfcn_varargs(self):
2935
2930
return 0;
2936
2931
}
2937
2932
'''
2938
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' ])
2939
2933
self .do_run (src , '100\n 200\n 13\n 42\n ' )
2940
2934
2941
2935
@needs_dylink
@@ -3038,7 +3032,6 @@ def test_dlfcn_unique_sig(self):
3038
3032
return 13;
3039
3033
}
3040
3034
''' )
3041
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_myfunc' ])
3042
3035
self .build_dlfcn_lib ('liblib.c' )
3043
3036
3044
3037
self .prep_dlfcn_main ()
@@ -3065,7 +3058,6 @@ def test_dlfcn_unique_sig(self):
3065
3058
return 0;
3066
3059
}
3067
3060
''' )
3068
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' ])
3069
3061
self .do_runf ('main.c' , 'success' )
3070
3062
3071
3063
@needs_dylink
@@ -3077,7 +3069,6 @@ def test_dlfcn_info(self):
3077
3069
return 13;
3078
3070
}
3079
3071
''' )
3080
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_myfunc' ])
3081
3072
self .build_dlfcn_lib ('liblib.c' )
3082
3073
3083
3074
self .prep_dlfcn_main ()
@@ -3119,7 +3110,6 @@ def test_dlfcn_info(self):
3119
3110
return 0;
3120
3111
}
3121
3112
''' )
3122
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' ])
3123
3113
self .do_runf ('main.c' , 'success' )
3124
3114
3125
3115
@needs_dylink
@@ -3139,7 +3129,6 @@ def test_dlfcn_stacks(self):
3139
3129
return strlen(bigstack);
3140
3130
}
3141
3131
''' )
3142
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_myfunc' ])
3143
3132
self .build_dlfcn_lib ('liblib.c' )
3144
3133
3145
3134
self .prep_dlfcn_main ()
@@ -3174,7 +3163,6 @@ def test_dlfcn_stacks(self):
3174
3163
return 0;
3175
3164
}
3176
3165
''' )
3177
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' , '_strcmp' ])
3178
3166
self .do_runf ('main.c' , 'success' )
3179
3167
3180
3168
@needs_dylink
@@ -3210,7 +3198,6 @@ def test_dlfcn_funcs(self):
3210
3198
}
3211
3199
}
3212
3200
''' )
3213
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_callvoid' , '_callint' , '_getvoid' , '_getint' ])
3214
3201
self .build_dlfcn_lib ('liblib.c' )
3215
3202
3216
3203
self .prep_dlfcn_main ()
@@ -3261,7 +3248,6 @@ def test_dlfcn_funcs(self):
3261
3248
return 0;
3262
3249
}
3263
3250
''' )
3264
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' ])
3265
3251
self .do_runf ('main.c' , '''go
3266
3252
void_main.
3267
3253
int_main 201
@@ -3286,7 +3272,6 @@ def test_dlfcn_mallocs(self):
3286
3272
void *mallocproxy(int n) { return malloc(n); }
3287
3273
void freeproxy(void *p) { free(p); }
3288
3274
''' )
3289
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_mallocproxy' , '_freeproxy' ])
3290
3275
self .build_dlfcn_lib ('liblib.c' )
3291
3276
3292
3277
self .prep_dlfcn_main ()
@@ -3338,7 +3323,6 @@ def test_dlfcn_longjmp(self):
3338
3323
return 0;
3339
3324
}
3340
3325
''' )
3341
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' , '_free' ])
3342
3326
self .do_runf ('main.c' , '''go!
3343
3327
pre 1
3344
3328
pre 2
@@ -3410,7 +3394,6 @@ def zzztest_dlfcn_exceptions(self):
3410
3394
return 0;
3411
3395
}
3412
3396
'''
3413
- self .set_setting ('EXPORTED_FUNCTIONS' , ['_main' , '_malloc' , '_free' ])
3414
3397
self .do_run (src , '''go!
3415
3398
ok: 65
3416
3399
int 123
0 commit comments