summaryrefslogtreecommitdiffstats
path: root/test/err_compat.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-10-08 21:12:05 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-10-08 21:17:42 (GMT)
commit2dd9c3b92fb9c91b6a2b1c3b78de37e91d201364 (patch)
tree3a4ee3114c49bd0119287ba86b8a7276f752fd0b /test/err_compat.c
parentc2b841f51394178a8b03092efc2bc85da82a6cff (diff)
downloadhdf5-2dd9c3b92fb9c91b6a2b1c3b78de37e91d201364.zip
hdf5-2dd9c3b92fb9c91b6a2b1c3b78de37e91d201364.tar.gz
hdf5-2dd9c3b92fb9c91b6a2b1c3b78de37e91d201364.tar.bz2
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.
Diffstat (limited to 'test/err_compat.c')
-rw-r--r--test/err_compat.c6
1 files changed, 4 insertions, 2 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();