summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2012-09-26 20:06:08 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2012-09-26 20:06:08 (GMT)
commit4f9adf902bb5ddbd44910b04ca0a301c869a7d5a (patch)
tree1b9ae4910f6a15c442fb178e9333896178c4a0ab
parent392b7d32492eb61da3e3a90ceeeae1eaf06d8b6f (diff)
downloadhdf5-4f9adf902bb5ddbd44910b04ca0a301c869a7d5a.zip
hdf5-4f9adf902bb5ddbd44910b04ca0a301c869a7d5a.tar.gz
hdf5-4f9adf902bb5ddbd44910b04ca0a301c869a7d5a.tar.bz2
[svn-r22815] Issue 8164 - test_image.c printed an extra "FAILED" after it succeeded. A test function doesn't return 0 after it succeeds.
It goes down to the error handling branch and prints "FAILED". The fix is adding "return 0;" in the end of the function. Tested on jam - simple change.
-rw-r--r--hl/test/test_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/test/test_image.c b/hl/test/test_image.c
index 4cef1b4..a4a10e4 100644
--- a/hl/test/test_image.c
+++ b/hl/test/test_image.c
@@ -676,7 +676,7 @@ static int test_generate(void)
goto out;
/* Indicate success */
- retval = 0;
+ return 0;
/* error zone, gracefully close */
out: