[asterisk-commits] rmudgett: branch 12 r403782 - /branches/12/main/test.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 13 14:06:55 CST 2013


Author: rmudgett
Date: Fri Dec 13 14:06:53 2013
New Revision: 403782

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=403782
Log:
test.c: Fix too sticky unit test failed status.

Rerunning a failed unit test after loading any required modules should
allow the test to report a pass status if it now passes.

Modified:
    branches/12/main/test.c

Modified: branches/12/main/test.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/test.c?view=diff&rev=403782&r1=403781&r2=403782
==============================================================================
--- branches/12/main/test.c (original)
+++ branches/12/main/test.c Fri Dec 13 14:06:53 2013
@@ -250,6 +250,7 @@
 		test->state = AST_TEST_FAIL;
 		goto exit;
 	}
+	test->state = AST_TEST_NOT_RUN;
 	result = test->cb(&test->info, TEST_EXECUTE, test);
 	if (test->state != AST_TEST_FAIL) {
 		test->state = result;




More information about the asterisk-commits mailing list