diff -r a179b74831c9 -r c1f20ce4abcf kerneltest/e32test/thread/t_thread.cpp --- a/kerneltest/e32test/thread/t_thread.cpp Thu Aug 19 11:14:22 2010 +0300 +++ b/kerneltest/e32test/thread/t_thread.cpp Tue Aug 31 16:34:26 2010 +0300 @@ -601,7 +601,8 @@ test(thread.ExitCategory()==_L("panic")); test(thread.ExitReason()==123); test(thread.ExitType()==EExitPanic); - CLOSE_AND_WAIT(thread); + r = RTest::CloseHandleAndWaitForDestruction(thread); + test_KErrNone(r); } test.Next(_L("Internal exit"));