From bf9bcdbe47a9c0cb3998f31eef1ce4b849c8be8f Mon Sep 17 00:00:00 2001 From: suhrke Date: Wed, 5 Jul 2017 05:22:14 -0700 Subject: [PATCH] workaround for odd Catch bug --- ReflexToQ3/test/catch.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReflexToQ3/test/catch.cpp b/ReflexToQ3/test/catch.cpp index ee1090b..22690e1 100644 --- a/ReflexToQ3/test/catch.cpp +++ b/ReflexToQ3/test/catch.cpp @@ -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 );