From 187946e965e5e2ac6d0fe97d421cb377d724a295 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 23 Apr 2021 17:53:04 +0200 Subject: [PATCH] Removed duplicated escape --- libfreerdp/crypto/test/CMakeLists.txt | 3 +-- libfreerdp/crypto/test/Test_x509_cert_info.c | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libfreerdp/crypto/test/CMakeLists.txt b/libfreerdp/crypto/test/CMakeLists.txt index 28c624ade..7fe2dbccf 100644 --- a/libfreerdp/crypto/test/CMakeLists.txt +++ b/libfreerdp/crypto/test/CMakeLists.txt @@ -17,8 +17,7 @@ include_directories(${OPENSSL_INCLUDE_DIR}) add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS}) -file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_PATH) -string(REGEX REPLACE "\\\\" "\\\\\\\\" TEST_PATH ${TEST_PATH}) +set(TEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}) add_definitions(-DTEST_SOURCE_DIR="${TEST_PATH}") target_link_libraries(${MODULE_NAME} freerdp winpr ${OPENSSL_LIBRARIES}) diff --git a/libfreerdp/crypto/test/Test_x509_cert_info.c b/libfreerdp/crypto/test/Test_x509_cert_info.c index b09619f81..35e679099 100644 --- a/libfreerdp/crypto/test/Test_x509_cert_info.c +++ b/libfreerdp/crypto/test/Test_x509_cert_info.c @@ -27,11 +27,7 @@ static char* certificate_path(void) where the tests are run. (ie. no chdir occurs between compilation and test running, or __FILE__ is an absolute path). */ -#if defined(_WIN32) - static const char dirsep = '\\'; -#else static const char dirsep = '/'; -#endif static const char filename[] = "Test_x509_cert_info.pem"; #ifdef TEST_SOURCE_DIR const char* file = TEST_SOURCE_DIR;