[trunk] fix error about the way to detect the additional test suite

This commit is contained in:
Mickael Savinaud 2011-11-30 17:31:42 +00:00
parent 455f675806
commit 563b56e09c
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ November 30, 2011
- change types related to index in stream to OPJ_OFF_T, thus resolving to a 64 bit signed integer
- change types related to size of stream to OPJ_UINT64_T
- change calls to fseek/ftell to LFS-capable OPJ_SEEK/OPJ_TELL
* [mickael] fix error about the way to detect the additional test suite
November 29, 2011
* [mickael] fix error with new way to detect kdu_expand

View File

@ -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: