summaryrefslogtreecommitdiffstats
path: root/tests/Network/NameLookup.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-26 14:46:20 +0100
committerMattes D <github@xoft.cz>2015-01-27 14:53:37 +0100
commit053362e604c98c229df57337ba7752d4d6b97fa8 (patch)
tree774001009deb09c66a7d3e6639a533c6f4ece721 /tests/Network/NameLookup.cpp
parentcTCPLinkImpl: Added the BEV_OPT_THREADSAFE flag. (diff)
downloadcuberite-053362e604c98c229df57337ba7752d4d6b97fa8.tar
cuberite-053362e604c98c229df57337ba7752d4d6b97fa8.tar.gz
cuberite-053362e604c98c229df57337ba7752d4d6b97fa8.tar.bz2
cuberite-053362e604c98c229df57337ba7752d4d6b97fa8.tar.lz
cuberite-053362e604c98c229df57337ba7752d4d6b97fa8.tar.xz
cuberite-053362e604c98c229df57337ba7752d4d6b97fa8.tar.zst
cuberite-053362e604c98c229df57337ba7752d4d6b97fa8.zip
Diffstat (limited to '')
-rw-r--r--tests/Network/NameLookup.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/Network/NameLookup.cpp b/tests/Network/NameLookup.cpp
index 822a96baf..16fa8042b 100644
--- a/tests/Network/NameLookup.cpp
+++ b/tests/Network/NameLookup.cpp
@@ -7,6 +7,7 @@
#include <thread>
#include "OSSupport/Event.h"
#include "OSSupport/Network.h"
+#include "OSSupport/NetworkSingleton.h"
@@ -45,7 +46,7 @@ public:
-int main()
+void DoTest(void)
{
cEvent evtFinish;
@@ -70,7 +71,16 @@ int main()
LOGD("IP lookup has been successfully queued");
evtFinish.Wait();
LOGD("IP lookup finished.");
+}
+
+
+
+
+int main()
+{
+ DoTest();
+ cNetworkSingleton::Get().Terminate();
LOGD("Network test finished");
return 0;
}