diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 15:31:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 15:31:32 (GMT) |
commit | 187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98 (patch) | |
tree | baffa167d0796786241aef6b0ce76d4adec3b66e /test/ros3.c | |
parent | 7a44581a84778a1346a2fd5b6cca7d9db905a321 (diff) | |
download | hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.zip hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.gz hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.bz2 |
Rename HD(f)printf() to (f)printf() (#3194)
Diffstat (limited to 'test/ros3.c')
-rw-r--r-- | test/ros3.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/ros3.c b/test/ros3.c index 7eb4230..12ead60 100644 --- a/test/ros3.c +++ b/test/ros3.c @@ -106,7 +106,7 @@ */ #define JSFAILED_AT() \ { \ - HDprintf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \ + printf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \ } /*---------------------------------------------------------------------------- @@ -197,10 +197,10 @@ static inline void jserr_long(long expected, long actual, const char *reason) { if (reason != NULL) { - HDprintf("%s\n", reason); + printf("%s\n", reason); } else { - HDprintf(" ! Expected %ld\n ! Actual %ld\n", expected, actual); + printf(" ! Expected %ld\n ! Actual %ld\n", expected, actual); } } @@ -242,10 +242,10 @@ static inline void jserr_str(const char *expected, const char *actual, const char *reason) { if (reason != NULL) { - HDprintf("%s\n", reason); + printf("%s\n", reason); } else { - HDprintf("!!! Expected:\n%s\n!!!Actual:\n%s\n", expected, actual); + printf("!!! Expected:\n%s\n!!!Actual:\n%s\n", expected, actual); } } @@ -1711,7 +1711,7 @@ error: /*********** * CLEANUP * ***********/ - HDprintf("\nerror!"); + printf("\nerror!"); HDfflush(stdout); if (fapl_id >= 0) { @@ -1753,7 +1753,7 @@ main(void) #endif /* H5_HAVE_ROS3_VFD */ - HDprintf("Testing ros3 VFD functionality.\n"); + printf("Testing ros3 VFD functionality.\n"); #ifdef H5_HAVE_ROS3_VFD @@ -1763,8 +1763,8 @@ main(void) bucket_url_env = HDgetenv("HDF5_ROS3_TEST_BUCKET_URL"); if (bucket_url_env == NULL || bucket_url_env[0] == '\0') { - HDprintf("WARNING: S3 bucket url is not defined in environment " - "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n"); + printf("WARNING: S3 bucket url is not defined in environment " + "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n"); } else { HDstrncpy(s3_test_bucket_url, bucket_url_env, S3_TEST_MAX_URL_SIZE); @@ -1774,25 +1774,25 @@ main(void) if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_text_restricted, (size_t)S3_TEST_MAX_URL_SIZE, "%s/%s", (const char *)s3_test_bucket_url, (const char *)S3_TEST_RESOURCE_TEXT_RESTRICTED)) { - HDprintf("* ros3 setup failed (text_restricted) ! *\n"); + printf("* ros3 setup failed (text_restricted) ! *\n"); return 1; } if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_text_public, (size_t)S3_TEST_MAX_URL_SIZE, "%s/%s", (const char *)s3_test_bucket_url, (const char *)S3_TEST_RESOURCE_TEXT_PUBLIC)) { - HDprintf("* ros3 setup failed (text_public) ! *\n"); + printf("* ros3 setup failed (text_public) ! *\n"); return 1; } if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_h5_public, (size_t)S3_TEST_MAX_URL_SIZE, "%s/%s", (const char *)s3_test_bucket_url, (const char *)S3_TEST_RESOURCE_H5_PUBLIC)) { - HDprintf("* ros3 setup failed (h5_public) ! *\n"); + printf("* ros3 setup failed (h5_public) ! *\n"); return 1; } if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_missing, S3_TEST_MAX_URL_SIZE, "%s/%s", (const char *)s3_test_bucket_url, (const char *)S3_TEST_RESOURCE_MISSING)) { - HDprintf("* ros3 setup failed (missing) ! *\n"); + printf("* ros3 setup failed (missing) ! *\n"); return 1; } @@ -1836,17 +1836,17 @@ main(void) nerrors += test_H5F_integration(); if (nerrors > 0) { - HDprintf("***** %d ros3 TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : ""); + printf("***** %d ros3 TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : ""); nerrors = 1; } else { - HDprintf("All ros3 tests passed.\n"); + printf("All ros3 tests passed.\n"); } return nerrors; /* 0 if no errors, 1 if any errors */ #else - HDprintf("SKIPPED - read-only S3 VFD not built\n"); + printf("SKIPPED - read-only S3 VFD not built\n"); return EXIT_SUCCESS; #endif /* H5_HAVE_ROS3_VFD */ |