diff options
author | Robb Matzke <matzke@llnl.gov> | 1997-12-16 21:08:59 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1997-12-16 21:08:59 (GMT) |
commit | 953979f4a00f25a94a018ab6d979436991bd5620 (patch) | |
tree | 8e77017ce3668214ab3ce95144361e85d2257eb9 /test/testhdf5.h | |
parent | e615fc7a982c1817cf7d4c24adf9323604692310 (diff) | |
download | hdf5-953979f4a00f25a94a018ab6d979436991bd5620.zip hdf5-953979f4a00f25a94a018ab6d979436991bd5620.tar.gz hdf5-953979f4a00f25a94a018ab6d979436991bd5620.tar.bz2 |
[svn-r147] ./test/dsets.c
./test/dtypes.c
./test/hyperslab.c
./test/istore.c
Added a definition for __FUNCTION__. Changed a couple
variable types.
./test/testhdf5.h
The error stack is printed when something goes wrong.
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r-- | test/testhdf5.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h index 50ceb33..27b9e19 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -24,6 +24,7 @@ * so we include the private headers here. */ #include <H5private.h> +#include <H5Eprivate.h> extern int num_errs; extern int Verbosity; @@ -32,7 +33,7 @@ extern int Verbosity; /* Used to make certain a return value _is_not_ a value */ #define CHECK(ret, val, where) \ do {if (Verbosity>9) print_func(" Call to routine: %15s at line %4d in %s returned %ld \n",where,(int)__LINE__,__FILE__,(long)ret);\ -if(ret == val) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in %s\n", where, (long)ret, (int)__LINE__,__FILE__); num_errs++;} \ +if(ret == val) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in %s\n", where, (long)ret, (int)__LINE__,__FILE__); num_errs++;H5Eprint (H5E_thrdid_g, stdout);} \ } while(0) #define CHECK_I(ret,where) { \ @@ -43,6 +44,7 @@ if(ret == val) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in if ((ret)<0) { \ print_func ("*** UNEXPECTED RETURN from %s is %ld line %4d in %s\n", \ (where), (long)(ret), (int)__LINE__, __FILE__); \ + H5Eprint (H5E_thrdid_g, stdout); \ num_errs++; \ } \ } @@ -55,6 +57,7 @@ if(ret == val) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in if (!(ret)) { \ print_func ("*** UNEXPECTED RETURN from %s is NULL line %4d in %s\n", \ (where), (int)__LINE__, __FILE__); \ + H5Eprint (H5E_thrdid_g, stdout); \ num_errs++; \ } \ } @@ -62,7 +65,7 @@ if(ret == val) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in /* Used to make certain a return value _is_ a value */ #define VERIFY(x, val, where) \ do {if (Verbosity>9) print_func(" Call to routine: %15s at line %4d in %s had value %ld \n",where,(int)__LINE__,__FILE__,(long)x);\ -if(x != val) {print_func("*** UNEXPECTED VALUE from %s is %ld at line %4d in %s\n", where, (long)x,(int)__LINE__,__FILE__); num_errs++;} \ +if(x != val) {print_func("*** UNEXPECTED VALUE from %s is %ld at line %4d in %s\n", where, (long)x,(int)__LINE__,__FILE__); H5Eprint (H5E_thrdid_g, stdout); num_errs++;} \ } while(0) /* Used to document process through a test and to check for errors */ @@ -70,7 +73,7 @@ if(x != val) {print_func("*** UNEXPECTED VALUE from %s is %ld at line %4d in %s\ do { \ if (Verbosity>8) print_func(" Call to routine: %15s at line %4d in %s returned %ld \n",func,(int)__LINE__,__FILE__,(long)ret); \ if (Verbosity>9) HEprint(stdout,0); \ -if(ret == FAIL) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in %s\n", func, (long)ret,(int)__LINE__,__FILE__); num_errs++;} \ +if(ret == FAIL) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in %s\n", func, (long)ret,(int)__LINE__,__FILE__); H5Eprint (H5E_thrdid_g, stdout); num_errs++;} \ } while(0) /* Used to document process through a test */ |