Change the return code of the test program so that aborting a test with an
exception doesn't count as a failure, to provide a way to skip tests that can't be performed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -34,6 +34,7 @@
 | 
				
			|||||||
#include <cppunit/Test.h>
 | 
					#include <cppunit/Test.h>
 | 
				
			||||||
#include <cppunit/TestResult.h>
 | 
					#include <cppunit/TestResult.h>
 | 
				
			||||||
#include <cppunit/TestFailure.h>
 | 
					#include <cppunit/TestFailure.h>
 | 
				
			||||||
 | 
					#include <cppunit/TestResultCollector.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __VISUALC__
 | 
					#ifdef __VISUALC__
 | 
				
			||||||
    #pragma warning(default:4100)
 | 
					    #pragma warning(default:4100)
 | 
				
			||||||
@@ -617,7 +618,9 @@ int TestApp::OnRun()
 | 
				
			|||||||
    runner.eventManager().pushProtector(new wxUnitTestProtector);
 | 
					    runner.eventManager().pushProtector(new wxUnitTestProtector);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool printProgress = !(verbose || m_detail || m_timing);
 | 
					    bool printProgress = !(verbose || m_detail || m_timing);
 | 
				
			||||||
    return runner.run("", false, true, printProgress) ? EXIT_SUCCESS : EXIT_FAILURE;
 | 
					    runner.run("", false, true, printProgress);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return runner.result().testFailures() == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int TestApp::OnExit()
 | 
					int TestApp::OnExit()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user