summaryrefslogtreecommitdiffstats
path: root/test/testhdf5.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r--test/testhdf5.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h
index 3aefa0c..149b4c8 100644
--- a/test/testhdf5.h
+++ b/test/testhdf5.h
@@ -127,6 +127,15 @@
/* Used to document process through a test */
#define MESSAGE(V,A) {if (HDGetTestVerbosity()>(V)) print_func A;}
+/* Used to indicate an error that is complex to check for */
+#define ERROR(where) do { \
+ if(VERBOSE_HI) \
+ print_func(" Call to routine: %15s at line %4d in %s returned " \
+ "invalid result\n", where, (int)__LINE__, __FILE__); \
+ TestErrPrintf("*** UNEXPECTED RESULT from %s at line %4d in %s\n" \
+ where, (int)__LINE__, __FILE__); \
+} while(0)
+
/* definitions for command strings */
#define VERBOSITY_STR "Verbosity"
#define SKIP_STR "Skip"