+void MiscThreadTestCase::TestThreadRun()
+{
+ MyJoinableThread thread1(2);
+ CPPUNIT_ASSERT_EQUAL( wxTHREAD_NO_ERROR, thread1.Run() );
+ thread1.Wait(); // wait until the thread ends
+
+ // verify that running twice the same thread fails
+ WX_ASSERT_FAILS_WITH_ASSERT( thread1.Run() );
+}
+