MCPcopy Create free account
hub / github.com/defold/defold / TEST_F

Function TEST_F

engine/dlib/src/test/test_webserver.cpp:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134#if !defined(DM_SANITIZE_ADDRESS) // until we can load the dylibs properly
135
136TEST_F(dmWebServerTest, TestServer)
137{
138 dmThread::Thread thread = dmThread::New(RunPythonThread, 0x8000, 0, "test");
139 int iter = 0;
140 while (!m_Quit && iter < 1000)
141 {
142 dmWebServer::Update(m_Server);
143 dmTime::Sleep(1000 * 10);
144 ++iter;
145 }
146 ASSERT_LE(iter, 1000);
147 dmThread::Join(thread);
148 ASSERT_EQ(0, g_PythonTestResult);
149}
150
151#endif
152

Callers

nothing calls this directly

Calls 4

NewFunction · 0.50
UpdateFunction · 0.50
SleepFunction · 0.50
JoinFunction · 0.50

Tested by

no test coverage detected