diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-05-04 15:49:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 15:49:01 (GMT) |
commit | 838d050a63d310a38f92a510dc94c0656a84bb51 (patch) | |
tree | 55fe7b05c0408ebf4b28c3bfb5cd9a1d04fb2502 /hl/test/h5hltest.h | |
parent | 19a59c29b93c04ae069881da2354d3d7048619b9 (diff) | |
download | hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.zip hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.tar.gz hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.tar.bz2 |
h5test.h testing macros get enclosed in do..while loops (#1721)
* h5test.h testing macros get enclosed in do..while loops
* Adds missed macro in hl C++ code
* Fixes macro in Windows code
Diffstat (limited to 'hl/test/h5hltest.h')
-rw-r--r-- | hl/test/h5hltest.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hl/test/h5hltest.h b/hl/test/h5hltest.h index 14f3e14..58b15be 100644 --- a/hl/test/h5hltest.h +++ b/hl/test/h5hltest.h @@ -29,21 +29,21 @@ /* Macros used in HL tests */ #define HL_TESTING2(WHAT) \ - { \ + do { \ HDprintf("Testing %-62s", WHAT); \ HDfflush(stdout); \ - } + } while (0) #define HL_TESTING3(WHAT) \ - { \ + do { \ HDprintf("Testing %-62s", WHAT); \ HDfflush(stdout); \ - } + } while (0) /* Implements verbose 'assert' with 'goto error' exit */ #define VERIFY(condition, string) \ do { \ if (!(condition)) \ - FAIL_PUTS_ERROR(string) \ + FAIL_PUTS_ERROR(string); \ } while (0) int test_packet_table_with_varlen(void); |