diff options
Diffstat (limited to 'hl/c++')
-rw-r--r-- | hl/c++/test/ptableTest.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/hl/c++/test/ptableTest.cpp b/hl/c++/test/ptableTest.cpp index 1807be6..a77a8e1 100644 --- a/hl/c++/test/ptableTest.cpp +++ b/hl/c++/test/ptableTest.cpp @@ -81,7 +81,7 @@ BasicTest() int error; printf("Testing %-62s", "basic functionality"); - HDfflush(stdout); + fflush(stdout); FL_PacketTable wrapper(fileID, H5P_DEFAULT, BASICTEST_PT, H5T_NATIVE_INT, 1); if (!wrapper.IsValid()) @@ -139,7 +139,7 @@ TestCompoundDatatype() int error; printf("Testing %-62s", "compound datatypes"); - HDfflush(stdout); + fflush(stdout); /* Create compound datatype */ typedef struct { @@ -194,7 +194,7 @@ error: { H5Tclose(dtypeID); } - H5E_END_TRY; + H5E_END_TRY H5_FAILED(); return 1; @@ -210,7 +210,7 @@ TestGetNext() int i; printf("Testing %-62s", "GetNextPacket"); - HDfflush(stdout); + fflush(stdout); /* Create a dataset */ FL_PacketTable wrapper(fileID, H5P_DEFAULT, GETNEXT_PT, H5T_NATIVE_INT, 500); @@ -277,7 +277,7 @@ TestCompress() size_t cd_nelemts = 0; printf("Testing %-62s", "compression"); - HDfflush(stdout); + fflush(stdout); try { /* Prepare property list to set compression, randomly use deflate */ DSetCreatPropList dscreatplist; @@ -326,7 +326,7 @@ TestGetPacket() int theRecs[3]; int i; printf("Testing %-62s", "GetPacket"); - HDfflush(stdout); + fflush(stdout); /* Create a dataset. Does not need to specify property list because there is no compression. */ @@ -365,7 +365,7 @@ int TestErrors() { printf("Testing %-62s", "error conditions"); - HDfflush(stdout); + fflush(stdout); /* Create a dataset */ FL_PacketTable wrapper(fileID, PT_TESTERROR, H5T_NATIVE_INT, 1); @@ -484,7 +484,7 @@ int SystemTest() { printf("Testing %-62s", "multiple datatypes"); - HDfflush(stdout); + fflush(stdout); hid_t dtypeID1, dtypeID2; hsize_t count; @@ -576,7 +576,7 @@ error: H5Tclose(dtypeID1); H5Tclose(dtypeID2); } - H5E_END_TRY; + H5E_END_TRY H5_FAILED(); return 1; @@ -626,7 +626,7 @@ TestHDFFV_9758() } printf("Testing %-62s", "data corruption in packed structs (HDFFV-9758)"); - HDfflush(stdout); + fflush(stdout); // Build a compound datatype compound_type = H5Tcreate(H5T_COMPOUND, sizeof(s1_t)); @@ -685,7 +685,7 @@ TestHDFFV_9758() ptable.ResetIndex(); for (size_t i = 0; i < NUM_PACKETS; i++) { s1_t s2; - HDmemset(&s2, 0, sizeof(s1_t)); + memset(&s2, 0, sizeof(s1_t)); err = ptable.GetNextPacket(&s2); if (err < 0) goto error; @@ -708,7 +708,7 @@ error: H5Tclose(compound_type); H5Fclose(fileID); } - H5E_END_TRY; + H5E_END_TRY H5_FAILED(); return 1; |