MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_order1

Function test_order1

test/core/pthread/test_pthread_dlsym.c:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static void test_order1() {
23 void* handle = open_lib();
24
25 g_one = dlsym(handle, "one");
26 g_two = dlsym(handle, "two");
27 g_three = dlsym(handle, "three");
28
29 assert(g_one() == 1);
30 assert(g_two() == 2);
31 assert(g_three() == 3);
32}
33
34static void test_order2() {
35 void* handle = open_lib();

Callers 1

mainFunction · 0.85

Calls 3

open_libFunction · 0.85
dlsymFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected