Skip to content

Commit 0864821

Browse files
committed
Fix JDBC Ctest
1 parent 9c47486 commit 0864821

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

test/unit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function(add_unit_test NAME)
121121
)
122122
TARGET_LINK_LIBRARIES(${TGT_NAME} ${MY_TARGET_LINK_LIBRARIES} ${MY_GCOV_LINK_LIBRARIES})
123123

124-
ADD_TEST(NAME jdbc_test_${NAME} COMMAND ${TGT_NAME})
124+
ADD_TEST(NAME jdbc_test_${NAME} COMMAND $<TARGET_FILE_NAME:${TGT_NAME}>)
125125

126126
MESSAGE(STATUS "Configuring unit tests - ${NAME}")
127127

test/unit/bugs/CMakeLists.txt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,19 @@
2727
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2828

2929

30-
SET(bugs_sources
30+
SET(test_bugs_sources
3131
../unit_fixture.cpp
3232
../main.cpp
3333
bugs.cpp)
3434

3535
IF(WIN32)
36-
SET(bugs_sources
36+
SET(test_bugs_sources
3737
${bugs_sources}
3838
bugs.h
3939
../unit_fixture.h)
4040

4141
ENDIF(WIN32)
4242

43-
ADD_EXECUTABLE(unsorted_bugs ${bugs_sources})
44-
SET_TARGET_PROPERTIES(unsorted_bugs PROPERTIES
45-
OUTPUT_NAME "unsorted_bugs"
46-
FOLDER "Tests/jdbc"
47-
)
48-
TARGET_LINK_LIBRARIES(unsorted_bugs ${MY_TARGET_LINK_LIBRARIES} ${MY_GCOV_LINK_LIBRARIES})
49-
50-
ADD_TEST(NAME jdbc_unsorted_bugs
51-
COMMAND
52-
unsorted_bugs
53-
)
43+
add_unit_test(bugs)
5444

5545
MESSAGE(STATUS "Configuring bugs test cases - unsorted")

0 commit comments

Comments
 (0)