Skip to content

Commit 9bd7d18

Browse files
committed
Fix CMake test command to use target file reference for integration tests
1 parent bf53867 commit 9bd7d18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cstool/cstool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#include <errno.h>
77
#include <string.h>
88

9-
#include "cstool.h"
109
#include <capstone/capstone.h>
10+
#include "cstool.h"
1111

1212
#ifdef CAPSTONE_AARCH64_COMPAT_HEADER
1313
#define CS_ARCH_AARCH64 CS_ARCH_ARM64

suite/cstest/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ add_test(NAME unit_cstest
1818
WORKING_DIRECTORY ${CSTEST_TEST_DIR}
1919
)
2020
add_test(NAME integration_py_cstest
21-
COMMAND python3 ${CSTEST_TEST_DIR}/integration_tests.py cstest
21+
COMMAND python3 ${CSTEST_TEST_DIR}/integration_tests.py $<TARGET_FILE:cstest>
2222
WORKING_DIRECTORY ${CSTEST_TEST_DIR}
2323
)

0 commit comments

Comments
 (0)