summaryrefslogtreecommitdiffhomepage
path: root/test/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-13 18:13:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-13 20:43:16 +0100
commit53529d2f8ada83d119ca0973607eca4e88bb0253 (patch)
tree6f87a2b142cc7fdd4db000d32cb9539b4a2af157 /test/main.cpp
parente45bf04c0f86ab08d5e811efb3a3d0b508f449c3 (diff)
make test app exit on failure
Diffstat (limited to 'test/main.cpp')
-rw-r--r--test/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/main.cpp b/test/main.cpp
index 5483160f..2fcc5715 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -1,4 +1,5 @@
#include "app.hpp"
+#include "compat/assert.hpp"
#include "loader/loader.hpp"
namespace floormat {
@@ -18,12 +19,11 @@ test_app::~test_app()
int test_app::exec()
{
- bool ret = true;
- ret &= test_json();
- ret &= test_tile_iter();
- ret &= test_const_math();
- ret &= test_serializer();
- return !ret;
+ fm_assert(test_json());
+ fm_assert(test_tile_iter());
+ fm_assert(test_const_math());
+ fm_assert(test_serializer());
+ return 0;
}
} // namespace floormat