workaround for odd Catch bug

This commit is contained in:
suhrke 2017-07-05 05:22:14 -07:00
parent f6b1b9ca41
commit bf9bcdbe47

View File

@ -226,7 +226,11 @@ TEST_CASE( "r2x: a single Teleporter and related Target can be converted", "[Ent
float offsetCoord;
iss >> attribute >> coords[0] >> coords[1] >> offsetCoord;
REQUIRE( attribute == "\"origin\"" );
// first test fails without busy wait
for( int i = 0; i < 10000000; i++ )
int x = i;
REQUIRE( attribute == "\"origin\"" );
REQUIRE( coords[0] == "\"-216.00000" );
REQUIRE( coords[1] == "-1488.000488" );
REQUIRE( fabs(-100.00000 - offsetCoord) <= DELTA );