Index: /trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp
===================================================================
--- /trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp	(revision 23712)
+++ /trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp	(revision 23713)
@@ -273,5 +273,5 @@
     /* Allocate data buffer. */
     pTestTask->DataSeg.pvSeg = RTMemAlloc(pTestTask->DataSeg.cbSeg);
-    if (pTestTask->DataSeg.pvSeg)
+    if (!pTestTask->DataSeg.pvSeg)
         return VERR_NO_MEMORY;
 
@@ -305,4 +305,7 @@
     uint32_t cTasksStarted = 0;
     int rc = VINF_SUCCESS;
+
+    if (pThread->enmState == PDMTHREADSTATE_INITIALIZING)
+        return VINF_SUCCESS;
 
     while (pTestFile->fRunning)
@@ -452,4 +455,7 @@
                         if (RT_SUCCESS(rc))
                         {
+                            rc = PDMR3ThreadResume(pTestFile->hThread);
+                            AssertRC(rc);
+
                             RTPrintf(TESTCASE ": Created test file %s cbFileMax=%llu cbFileSegment=%u cSegments=%u cTasksActiveMax=%u\n",
                                      szFile, pTestFile->cbFileMax, pTestFile->cbFileSegment, pTestFile->cSegments, pTestFile->cTasksActiveMax);
