summaryrefslogtreecommitdiffstats
path: root/test
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
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')
-rw-r--r--test/err_compat.c6
-rw-r--r--test/testfiles/err_compat_14
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):