From 2dd9c3b92fb9c91b6a2b1c3b78de37e91d201364 Mon Sep 17 00:00:00 2001 From: David Young Date: Tue, 8 Oct 2019 16:12:05 -0500 Subject: The err_compat test relied on some "lines" on the standard output stream to end with whitespace padding rather than newlines. My introduction of variadic TESTING() got rid of the padding. I have straightened this out by newline-terminating the stdout lines in the test program and in its expected out. I also add some newlines to the program's standard error output so that the expected error output still matches. --- test/err_compat.c | 6 ++++-- test/testfiles/err_compat_1 | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/err_compat.c b/test/err_compat.c index 4860a3c..f3e11bb 100644 --- a/test/err_compat.c +++ b/test/err_compat.c @@ -238,7 +238,7 @@ test_error1(void) herr_t ret; TESTING("error API H5Eset/get_auto"); - fprintf(stderr, "\n"); + printf("\n"); /* Create the data space */ dims[0] = DIM0; @@ -335,6 +335,7 @@ test_error1(void) if(dataset >= 0) TEST_ERROR; + fprintf(stderr, "\n"); return 0; error: @@ -367,7 +368,7 @@ test_error2(hid_t file) const char *FUNC_test_error="test_error2"; TESTING("error API based on data I/O"); - fprintf(stderr, "\n"); + printf("\n"); /* Create the data space */ dims[0] = DIM0; @@ -485,6 +486,7 @@ main(void) /* Print out the errors on stack */ dump_error(); + fprintf(stderr, "\n"); /* Empty error stack */ H5Eclear1(); diff --git a/test/testfiles/err_compat_1 b/test/testfiles/err_compat_1 index d81dba1..6c861a2 100644 --- a/test/testfiles/err_compat_1 +++ b/test/testfiles/err_compat_1 @@ -1,4 +1,6 @@ -Testing error API H5Eset/get_auto Testing error API based on data I/O All error API tests passed. +Testing error API H5Eset/get_auto +Testing error API based on data I/O +All error API tests passed. This program tests the Error API compatible with HDF5 version (number). There are supposed to be some error messages ********* Print error stack in HDF5 default way ********* HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs): -- cgit v0.12