summaryrefslogtreecommitdiffstats
path: root/test/testhdf5.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-16 22:23:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-16 22:23:43 (GMT)
commitc2c94c31878dc42926661c9cb7e71be620196fc1 (patch)
treeee9ce2ae309882348dc1eafc1d105b5e6646605e /test/testhdf5.h
parent903e677366a86ea385d5cfe1241f3f53132941de (diff)
downloadhdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.zip
hdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.tar.gz
hdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.tar.bz2
[svn-r157] Reformatted code with indent...
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r--test/testhdf5.h77
1 files changed, 38 insertions, 39 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h
index 27b9e19..d13f08a 100644
--- a/test/testhdf5.h
+++ b/test/testhdf5.h
@@ -26,8 +26,8 @@
#include <H5private.h>
#include <H5Eprivate.h>
-extern int num_errs;
-extern int Verbosity;
+extern int num_errs;
+extern int Verbosity;
/* Use %ld to print the value because long should cover most cases. */
/* Used to make certain a return value _is_not_ a value */
@@ -36,30 +36,30 @@ do {if (Verbosity>9) print_func(" Call to routine: %15s at line %4d in %s retu
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) { \
- if (Verbosity>9) { \
+#define CHECK_I(ret,where) { \
+ 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)<0) { \
+ (where), (int)__LINE__, __FILE__, (long)(ret)); \
+ } \
+ 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++; \
- } \
+ (where), (long)(ret), (int)__LINE__, __FILE__); \
+ H5Eprint (H5E_thrdid_g, stdout); \
+ num_errs++; \
+ } \
}
-
-#define CHECK_PTR(ret,where) { \
- if (Verbosity>9) { \
+
+#define CHECK_PTR(ret,where) { \
+ if (Verbosity>9) { \
print_func(" Call to routine: %15s at line %4d in %s returned %p\n", \
- (where), (int)__LINE__, __FILE__, (ret)); \
- } \
- if (!(ret)) { \
+ (where), (int)__LINE__, __FILE__, (ret)); \
+ } \
+ 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++; \
- } \
+ (where), (int)__LINE__, __FILE__); \
+ H5Eprint (H5E_thrdid_g, stdout); \
+ num_errs++; \
+ } \
}
/* Used to make certain a return value _is_ a value */
@@ -80,35 +80,34 @@ if(ret == FAIL) {print_func("*** UNEXPECTED RETURN from %s is %ld at line %4d in
#define MESSAGE(V,A) {if (Verbosity>(V)) print_func A;}
/* definitions for command strings */
-#define VERBOSITY_STR "Verbosity"
-#define SKIP_STR "Skip"
-#define TEST_STR "Test"
-#define CLEAN_STR "Cleanup"
+#define VERBOSITY_STR "Verbosity"
+#define SKIP_STR "Skip"
+#define TEST_STR "Test"
+#define CLEAN_STR "Cleanup"
/* System command to use for Cleanup */
#ifdef VMS
-#define CLEAN_CMD "delete *.hdf;*"
+#define CLEAN_CMD "delete *.hdf;*"
#else
# ifdef WIN32
-# define CLEAN_CMD "del *.hdf"
+# define CLEAN_CMD "del *.hdf"
# else
/* default is Unix */
-# define CLEAN_CMD "rm -f *.hdf"
-# endif /* WIN32 */
+# define CLEAN_CMD "rm -f *.hdf"
+# endif /* WIN32 */
#endif /*VMS */
/* Prototypes for the support routines */
-int print_func(const char *, ...);
+int print_func(const char *,...);
/* Prototypes for the test routines */
-void test_metadata(void);
-void test_file(void);
-void test_heap (void);
-void test_ohdr (void);
-void test_stab (void);
-void test_h5t (void);
-void test_h5p (void);
-void test_h5d (void);
+void test_metadata(void);
+void test_file(void);
+void test_heap(void);
+void test_ohdr(void);
+void test_stab(void);
+void test_h5t(void);
+void test_h5p(void);
+void test_h5d(void);
#endif /* HDF5TEST_H */
-