kerneltest/e32test/secure/t_sdrivers.cpp
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
equal deleted inserted replaced
43:c1f20ce4abcf 44:3e88ff8f41d5
   365 	ldd.KernelTestData(kernelPtr,kernelData2);
   365 	ldd.KernelTestData(kernelPtr,kernelData2);
   366 	test_Equal(kernelData,kernelData2);
   366 	test_Equal(kernelData,kernelData2);
   367 
   367 
   368 	// get another thread to try and call device GetCaps with descriptor in kernel memory...
   368 	// get another thread to try and call device GetCaps with descriptor in kernel memory...
   369 	test.Next(_L("Check GetCaps with bad descriptor 2"));
   369 	test.Next(_L("Check GetCaps with bad descriptor 2"));
   370 	r = thread.Create(_L("TestGetCapsThread2"),TestGetCapsThread,KDefaultStackSize,0x2000,0x2000,(TAny*)kernelPtr);
   370 	r = thread.Create(_L("TestGetCapsThread"),TestGetCapsThread,KDefaultStackSize,0x2000,0x2000,(TAny*)kernelPtr);
   371 	test_KErrNone(r);
   371 	test_KErrNone(r);
   372 	thread.Logon(ls);
   372 	thread.Logon(ls);
   373 	thread.Rendezvous(rs);
   373 	thread.Rendezvous(rs);
   374 	thread.Resume();
   374 	thread.Resume();
   375 	User::WaitForRequest(rs);
   375 	User::WaitForRequest(rs);
   470 	RTimer timer;
   470 	RTimer timer;
   471 	test(timer.CreateLocal()==KErrNone);
   471 	test(timer.CreateLocal()==KErrNone);
   472 	TRequestStatus timerStat;
   472 	TRequestStatus timerStat;
   473 	timer.After(timerStat,20*1000000);
   473 	timer.After(timerStat,20*1000000);
   474 	User::WaitForRequest(timerStat,keyStat);
   474 	User::WaitForRequest(timerStat,keyStat);
       
   475 	TInt key = 0;
   475 	if(keyStat!=KRequestPending)
   476 	if(keyStat!=KRequestPending)
   476 		(void)test.Console()->KeyCode();
   477 		key = test.Console()->KeyCode();
   477 
       
   478 	timer.Cancel();
   478 	timer.Cancel();
   479 	test.Console()->ReadCancel();
   479 	test.Console()->ReadCancel();
   480 	User::WaitForAnyRequest();
   480 	User::WaitForAnyRequest();
   481 
   481 
   482 	test.End();
   482 	test.End();