summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorancarola <raffaele.ancarola@epfl.ch>2019-01-19 20:31:46 +0100
committerancarola <raffaele.ancarola@epfl.ch>2019-01-19 20:31:46 +0100
commitba86c8245484279ed7e78912b1ecd9ff4ac82e1e (patch)
tree7f3a04a92b862c4d145f2e79b87d524f98b54eed /test
parentTest two completed successfully (diff)
downloadflatland-ba86c8245484279ed7e78912b1ecd9ff4ac82e1e.tar.gz
flatland-ba86c8245484279ed7e78912b1ecd9ff4ac82e1e.zip
minor fixes
Diffstat (limited to 'test')
-rw-r--r--test/main.cpp3
-rwxr-xr-xtest/testbin14248 -> 14656 bytes
2 files changed, 2 insertions, 1 deletions
diff --git a/test/main.cpp b/test/main.cpp
index 5a441a7..2b16838 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -1,5 +1,6 @@
#include "flatland.h"
#include "flatwindow.h"
+#include "exceptions/forcequit.h"
int count = 0;
@@ -24,7 +25,7 @@ void loop(float dt)
++count;
if (count == 1000)
- quit_flatland();
+ throw ForceQuit("1000 steps reached");
cout << "Loop number: " << count << endl;
}
diff --git a/test/test b/test/test
index 337002c..0f34b3c 100755
--- a/test/test
+++ b/test/test
Binary files differ