BUG: fix the test

This commit is contained in:
Bill Hoffman 2003-08-07 16:54:45 -04:00
parent ab335dbc9b
commit 5523c4a967
3 changed files with 18 additions and 18 deletions

View File

@ -49,12 +49,12 @@ LOAD_CACHE(${Complex_SOURCE_DIR}/Cache
INCLUDE_INTERNALS
CACHE_TEST_VAR_INTERNAL)
LOAD_CACHE(${Complex_BINARY_DIR} READ_WITH_PREFIX foo CACHE_TEST_VAR_INTERNAL)
IF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
MESSAGE("Load cache worked")
ELSE(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
MESSAGE(FATAL_ERROR "Load cache with prefix failed")
ENDIF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
LOAD_CACHE(${Complex_SOURCE_DIR}/Cache READ_WITH_PREFIX foo CACHE_TEST_VAR2)
IF(${fooCACHE_TEST_VAR2} MATCHES bar)
MESSAGE("Load cache worked: ${fooCACHE_TEST_VAR2}")
ELSE(${fooCACHE_TEST_VAR2} MATCHES bar)
MESSAGE(FATAL_ERROR "Load cache with prefix failed: ${fooCACHE_TEST_VAR2}")
ENDIF(${fooCACHE_TEST_VAR2} MATCHES bar)

View File

@ -49,12 +49,12 @@ LOAD_CACHE(${Complex_SOURCE_DIR}/Cache
INCLUDE_INTERNALS
CACHE_TEST_VAR_INTERNAL)
LOAD_CACHE(${Complex_BINARY_DIR} READ_WITH_PREFIX foo CACHE_TEST_VAR_INTERNAL)
IF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
MESSAGE("Load cache worked")
ELSE(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
MESSAGE(FATAL_ERROR "Load cache with prefix failed")
ENDIF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
LOAD_CACHE(${Complex_SOURCE_DIR}/Cache READ_WITH_PREFIX foo CACHE_TEST_VAR2)
IF(${fooCACHE_TEST_VAR2} MATCHES bar)
MESSAGE("Load cache worked: ${fooCACHE_TEST_VAR2}")
ELSE(${fooCACHE_TEST_VAR2} MATCHES bar)
MESSAGE(FATAL_ERROR "Load cache with prefix failed: ${fooCACHE_TEST_VAR2}")
ENDIF(${fooCACHE_TEST_VAR2} MATCHES bar)

View File

@ -49,12 +49,12 @@ LOAD_CACHE(${Complex_SOURCE_DIR}/Cache
INCLUDE_INTERNALS
CACHE_TEST_VAR_INTERNAL)
LOAD_CACHE(${Complex_BINARY_DIR} READ_WITH_PREFIX foo CACHE_TEST_VAR_INTERNAL)
IF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
MESSAGE("Load cache worked")
ELSE(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
MESSAGE(FATAL_ERROR "Load cache with prefix failed")
ENDIF(${fooCACHE_TEST_VAR_INTERNAL} MATCHES bar)
LOAD_CACHE(${Complex_SOURCE_DIR}/Cache READ_WITH_PREFIX foo CACHE_TEST_VAR2)
IF(${fooCACHE_TEST_VAR2} MATCHES bar)
MESSAGE("Load cache worked: ${fooCACHE_TEST_VAR2}")
ELSE(${fooCACHE_TEST_VAR2} MATCHES bar)
MESSAGE(FATAL_ERROR "Load cache with prefix failed: ${fooCACHE_TEST_VAR2}")
ENDIF(${fooCACHE_TEST_VAR2} MATCHES bar)