summaryrefslogtreecommitdiffstats
path: root/tests/BlockTypeRegistry/BlockStateTest.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-08-26 21:38:34 +0200
committerGitHub <noreply@github.com>2019-08-26 21:38:34 +0200
commit74579fbadf0f89154cba5d9157a57f59fcda8f70 (patch)
tree2aca1ce5d8e41e91adcfe25dfb4bb51369fb865e /tests/BlockTypeRegistry/BlockStateTest.cpp
parentAdded BlockState implementation for 1.13 support. (diff)
downloadcuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.gz
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.bz2
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.lz
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.xz
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.tar.zst
cuberite-74579fbadf0f89154cba5d9157a57f59fcda8f70.zip
Diffstat (limited to 'tests/BlockTypeRegistry/BlockStateTest.cpp')
-rw-r--r--tests/BlockTypeRegistry/BlockStateTest.cpp39
1 files changed, 5 insertions, 34 deletions
diff --git a/tests/BlockTypeRegistry/BlockStateTest.cpp b/tests/BlockTypeRegistry/BlockStateTest.cpp
index d3ce92455..57317cbdf 100644
--- a/tests/BlockTypeRegistry/BlockStateTest.cpp
+++ b/tests/BlockTypeRegistry/BlockStateTest.cpp
@@ -109,37 +109,8 @@ static void testReplacing()
-int main()
-{
- LOGD("BlockStateTest started");
-
- try
- {
- testStaticCreation();
- testDynamicCreation();
- testReplacing();
- }
- catch (const TestException & exc)
- {
- LOGERROR("BlockStateTest has failed explicitly: %s", exc.mMessage.c_str());
- return 1;
- }
- catch (const std::runtime_error & exc)
- {
- LOGERROR("BlockStateTest has failed, an unhandled exception was thrown: %s", exc.what());
- return 1;
- }
- catch (...)
- {
- LOGERROR("BlockStateTest has failed, an unknown exception was thrown.");
- return 1;
- }
-
- LOGD("BlockStateTest finished");
-
- return 0;
-}
-
-
-
-
+IMPLEMENT_TEST_MAIN("BlockStateTest",
+ testStaticCreation();
+ testDynamicCreation();
+ testReplacing();
+)