From 31e931ce260841714a81af7e98fb3f926651b0db Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 27 Sep 2012 10:19:29 -0500 Subject: [svn-r22821] 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. --- hl/test/test_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hl/test/test_image.c b/hl/test/test_image.c index bd4a947..7740a4d 100644 --- a/hl/test/test_image.c +++ b/hl/test/test_image.c @@ -688,7 +688,7 @@ static int test_generate(void) goto out; /* Indicate success */ - retval = 0; + return 0; /* error zone, gracefully close */ out: -- cgit v0.12