summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-25 15:31:00 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-25 15:31:00 +0000
commitd7c5c8518f9c9defdff3e0df034fbcac7d8557b8 (patch)
tree2944f6430062515faa044de7b28a2cc9600dd0f9 /tests
parentf776cffbc68c543e89366d001c9255824d7b3e51 (diff)
[2.0] Backport from trunk
Make sure to have a non empty list
Diffstat (limited to 'tests')
-rw-r--r--tests/nonregression/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt
index ee5209e3..175c3d16 100644
--- a/tests/nonregression/CMakeLists.txt
+++ b/tests/nonregression/CMakeLists.txt
@@ -376,7 +376,9 @@ foreach(f ${OPJ_DATA_NR_LIST})
get_filename_component(ff ${f} NAME)
list(APPEND existing_filenames ${ff})
endforeach()
+if(existing_filenames)
list(REMOVE_ITEM existing_filenames ${nonregression_filenames_used})
+endif()
# keep track of new addition:
# if we reach here, then a J2K files was added but no test is present in