kerneltest/e32test/misc/t_ymodemz.cpp
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
equal deleted inserted replaced
43:c1f20ce4abcf 44:3e88ff8f41d5
   209 			TZipInfo z;
   209 			TZipInfo z;
   210 			z.iRemain=size;
   210 			z.iRemain=size;
   211 			r=Initialise(z);
   211 			r=Initialise(z);
   212 			CHECK(r);
   212 			CHECK(r);
   213 			test.Printf(_L("Read header\n"));
   213 			test.Printf(_L("Read header\n"));
       
   214 			TUint32 c=0;
   214 			RThread t;
   215 			RThread t;
   215 			t.SetHandle(z.iThreadHandle);
   216 			t.SetHandle(z.iThreadHandle);
   216 			while (z.iRemain && z.iThreadStatus==KRequestPending)
   217 			while (z.iRemain && z.iThreadStatus==KRequestPending)
   217 				{
   218 				{
   218 				TRequestStatus dummy;
   219 				TRequestStatus dummy;
   225 					DELAY(20000);
   226 					DELAY(20000);
   226 				if (z.iHeaderDone==1 && z.iThreadStatus==KRequestPending)
   227 				if (z.iHeaderDone==1 && z.iThreadStatus==KRequestPending)
   227 					{
   228 					{
   228 					// after reading first block, process the header
   229 					// after reading first block, process the header
   229 					ProcessHeader(z);
   230 					ProcessHeader(z);
       
   231 					c=User::NTickCount();
   230 					}
   232 					}
   231 				}
   233 				}
   232 			test.Printf(_L("\nWait for thread to exit\n"));
   234 			test.Printf(_L("\nWait for thread to exit\n"));
   233 			User::WaitForRequest(z.iThreadStatus);
   235 			User::WaitForRequest(z.iThreadStatus);
   234 			TInt exitType=t.ExitType();
   236 			TInt exitType=t.ExitType();