Skip to content

Commit c3a4fa0

Browse files
authored
Merge pull request #215 from open-telemetry/main
[TEST] load the .dylib files on macos in the singleton test (open-telemetry#3316)
2 parents a21f718 + 2c9b68f commit c3a4fa0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/test/singleton/singleton_test.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ void do_something()
5555

5656
# ifdef _WIN32
5757
HMODULE component_g = LoadLibraryA("component_g.dll");
58+
# elif defined(__APPLE__)
59+
void *component_g = dlopen("libcomponent_g.dylib", RTLD_NOW);
5860
# else
5961
void *component_g = dlopen("libcomponent_g.so", RTLD_NOW);
6062
# endif
@@ -81,6 +83,8 @@ void do_something()
8183

8284
# ifdef _WIN32
8385
HMODULE component_h = LoadLibraryA("component_h.dll");
86+
# elif defined(__APPLE__)
87+
void *component_h = dlopen("libcomponent_h.dylib", RTLD_NOW);
8488
# else
8589
void *component_h = dlopen("libcomponent_h.so", RTLD_NOW);
8690
# endif

0 commit comments

Comments
 (0)