summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2011-11-30 17:31:42 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2011-11-30 17:31:42 +0000
commit563b56e09c1b3545894c8210bbf295a1ff5aad1e (patch)
treec5471d0f0698b667331fb9731150a7e2fb8f5554 /tests
parent455f675806670fb095b824a2cdb99350a63eeefc (diff)
[trunk] fix error about the way to detect the additional test suite
Diffstat (limited to 'tests')
-rw-r--r--tests/nonregression/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt
index 4589ddfc..966a198d 100644
--- a/tests/nonregression/CMakeLists.txt
+++ b/tests/nonregression/CMakeLists.txt
@@ -95,7 +95,8 @@ IF (TEST_SUITE_FILES)
# Avoid to process the official test suite
SET(FILE_ALREADY_READ 0)
- STRING(REGEX MATCH "test_suite.ctest.in$" FILE_ALREADY_READ ${TEST_SUITE_FILE})
+ GET_FILENAME_COMPONENT(TEST_SUITE_FILENAME ${TEST_SUITE_FILE} NAME)
+ STRING(REGEX MATCH "^test_suite.ctest.in$" FILE_ALREADY_READ ${TEST_SUITE_FILENAME})
IF(NOT FILE_ALREADY_READ)
# Configure the additional test suite file: