Commit 36cfa118 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

GMVReader: guard against the tests not existing

If ParaView isn't going to be built, the tests won't get created.
parent fc7e5e2b
......@@ -21,9 +21,11 @@ paraview_add_client_tests(
TEST_DATA_TARGET ParaViewData
LOAD_PLUGIN "GMVReader"
)
set_property(TEST "pv.GMVReaderInvalidFiles${suffix}"
PROPERTY
PASS_REGULAR_EXPRESSION "client0 process exited with code 0")
if (TEST "pv.GMVReaderInvalidFiles${suffix}")
set_property(TEST "pv.GMVReaderInvalidFiles${suffix}"
PROPERTY
PASS_REGULAR_EXPRESSION "client0 process exited with code 0")
endif ()
paraview_add_client_server_tests(
BASELINE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Data/Baseline"
......@@ -31,6 +33,8 @@ paraview_add_client_server_tests(
TEST_DATA_TARGET ParaViewData
LOAD_PLUGIN "GMVReader"
)
set_property(TEST "pvcs.GMVReaderInvalidFiles${suffix}"
PROPERTY
PASS_REGULAR_EXPRESSION "server process exited with code 0")
if (TEST "pvcs.GMVReaderInvalidFiles${suffix}")
set_property(TEST "pvcs.GMVReaderInvalidFiles${suffix}"
PROPERTY
PASS_REGULAR_EXPRESSION "server process exited with code 0")
endif ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment