MCPcopy Create free account
hub / github.com/KDAB/GammaRay / testCreateDestroy

Method testCreateDestroy

tests/multithreadingtest.cpp:62–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void testCreateDestroy()
63 {
64 QFETCH(int, batchSize);
65 QFETCH(int, delay);
66 QFETCH(int, iterations);
67
68 createProbe();
69
70 Thread t;
71 t.batchSize = batchSize;
72 t.delay = delay;
73 t.iterations = iterations;
74 QTest::qWait(1);
75
76 QSignalSpy spy(&t, &Thread::finished);
77 QVERIFY(spy.isValid());
78
79 // this mainly aims at not triggering any of the sanity checks in the object models or Probe
80 t.start();
81 QVERIFY(spy.wait(30000));
82 }
83};
84
85QTEST_MAIN(MultiThreadingTest)

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected