mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-30 05:29:41 +01:00 
			
		
		
		
	Fix TestSuite::run()
This commit is contained in:
		| @@ -72,6 +72,11 @@ protected: | |||||||
| 		_fixture.get()->setUp(); | 		_fixture.get()->setUp(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	void setUp(const std::vector<std::string>& setup) | ||||||
|  | 	{ | ||||||
|  | 		_fixture.get()->setUp(setup); | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	void tearDown() | 	void tearDown() | ||||||
| 	{ | 	{ | ||||||
| 		_fixture.get()->tearDown(); | 		_fixture.get()->tearDown(); | ||||||
|   | |||||||
| @@ -27,6 +27,8 @@ void TestSuite::run(TestResult *result) | |||||||
| 			break; | 			break; | ||||||
|  |  | ||||||
| 		Test *test = *it; | 		Test *test = *it; | ||||||
|  | 		if (_setup.size() > 0) | ||||||
|  | 			test->addSetup(_setup); | ||||||
| 		test->run(result); | 		test->run(result); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Francis ANDRE
					Francis ANDRE