diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-05-24 18:03:53 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-05-24 18:03:53 (GMT) |
commit | 7924f465c234221e41466aef5485eeb21f12000a (patch) | |
tree | 347fabff1e534e02342712c398eb1b1f1580621b | |
parent | dd85db8cd290fec2706501346cb633e84814c2e9 (diff) | |
download | hdf5-7924f465c234221e41466aef5485eeb21f12000a.zip hdf5-7924f465c234221e41466aef5485eeb21f12000a.tar.gz hdf5-7924f465c234221e41466aef5485eeb21f12000a.tar.bz2 |
[svn-r29959] Fixed some bad logic in the cache_api test that caused
EXIT_FAILURE to be returned from the test.
Tested on: 64-bit Ubuntu Linux w/ gcc 5.3.1
Autotools serial
-rw-r--r-- | test/cache_api.c | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/test/cache_api.c b/test/cache_api.c index 59bb49d..1d3c9cf 100644 --- a/test/cache_api.c +++ b/test/cache_api.c @@ -34,15 +34,10 @@ /* private function declarations: */ static hbool_t check_fapl_mdc_api_calls(void); - static hbool_t check_file_mdc_api_calls(void); - static hbool_t mdc_api_call_smoke_check(int express_test); - static H5AC_cache_config_t * init_invalid_configs(void); - static hbool_t check_fapl_mdc_api_errs(void); - static hbool_t check_file_mdc_api_errs(void); @@ -498,7 +493,7 @@ check_fapl_mdc_api_calls(void) HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", FUNC, failure_mssg); } - return !pass; + return pass; } /* check_fapl_mdc_api_calls() */ @@ -854,7 +849,7 @@ check_file_mdc_api_calls(void) HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", FUNC, failure_mssg); } - return !pass; + return pass; } /* check_file_mdc_api_calls() */ @@ -1013,17 +1008,17 @@ mdc_api_call_smoke_check(int express_test) TESTING("MDC API smoke check"); + pass = TRUE; + if ( express_test > 0 ) { SKIPPED(); HDfprintf(stdout, " Long tests disabled.\n"); - return 0; + return pass; } - pass = TRUE; - /* Open a file with the default FAPL. Verify that the cache is * configured as per the default both by looking at its internal * configuration, and via the H5Fget_mdc_config() call. @@ -1537,7 +1532,7 @@ mdc_api_call_smoke_check(int express_test) HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", FUNC, failure_mssg); } - return !pass; + return pass; } /* mdc_api_call_smoke_check() */ @@ -1910,7 +1905,7 @@ check_fapl_mdc_api_errs(void) HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", FUNC, failure_mssg); } - return !pass; + return pass; } /* check_fapl_mdc_api_errs() */ @@ -2253,7 +2248,7 @@ check_file_mdc_api_errs(void) HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", FUNC, failure_mssg); } - return !pass; + return pass; } /* check_file_mdc_api_errs() */ @@ -2297,26 +2292,30 @@ main(void) return EXIT_FAILURE; } -#if 1 - if(!check_fapl_mdc_api_calls()) + if ( !check_fapl_mdc_api_calls() ) { + nerrs += 1; -#endif -#if 1 - if(!check_file_mdc_api_calls()) + } + + if ( !check_file_mdc_api_calls() ) { + nerrs += 1; -#endif -#if 1 - if(!mdc_api_call_smoke_check(express_test)) + } + + if ( !mdc_api_call_smoke_check(express_test) ) { + nerrs += 1; -#endif -#if 1 - if(!check_fapl_mdc_api_errs()) + } + + if ( !check_fapl_mdc_api_errs() ) { + nerrs += 1; -#endif -#if 1 - if(!check_file_mdc_api_errs()) + } + + if ( !check_file_mdc_api_errs() ) { + nerrs += 1; -#endif + } if ( invalid_configs ) { |