This repository was archived by the owner on Aug 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -248,8 +248,12 @@ if(BUILD_TESTING)
248
248
src/jaegertracing/testutils/TracerUtil.cpp)
249
249
target_link_libraries (testutils PUBLIC ${JAEGERTRACING_LIB} )
250
250
251
+ if (BUILD_SHARED_LIBS )
252
+ set (dynamic_load_test_src src/jaegertracing/DynamicLoadTest.cpp)
253
+ endif ()
251
254
add_executable (UnitTest
252
255
src/jaegertracing/ConfigTest.cpp
256
+ ${dynamic_load_test_src}
253
257
src/jaegertracing/ReferenceTest.cpp
254
258
src/jaegertracing/SpanContextTest.cpp
255
259
src/jaegertracing/SpanTest.cpp
@@ -284,9 +288,9 @@ if(BUILD_TESTING)
284
288
285
289
if (TARGET jaegertracing)
286
290
add_executable (DynamicallyLoadTracerTest
287
- src/jaegertracing/DynamicLoadTest.cpp
288
291
src/jaegertracing/DynamicallyLoadTracerTest.cpp)
289
292
target_include_directories (DynamicallyLoadTracerTest PUBLIC
293
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /src>
290
294
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} /src>)
291
295
target_link_libraries (
292
296
DynamicallyLoadTracerTest OpenTracing::opentracing-static GTest::main)
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ TEST(DynamicLoad, invalidVersion)
65
65
const void * errorCategory = nullptr ;
66
66
void * tracerFactory = nullptr ;
67
67
const auto rcode = OpenTracingMakeTracerFactory (
68
- " 1 .0.0" /* invalid version*/ , &errorCategory, &tracerFactory);
68
+ " 0 .0.0" /* invalid version*/ , &errorCategory, &tracerFactory);
69
69
ASSERT_EQ (rcode, opentracing::incompatible_library_versions_error.value ());
70
70
ASSERT_EQ (
71
71
errorCategory,
You can’t perform that action at this time.
0 commit comments