kerneltest/e32test/secure/t_shal.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
   256 	RTimer timer;
   256 	RTimer timer;
   257 	test(timer.CreateLocal()==KErrNone);
   257 	test(timer.CreateLocal()==KErrNone);
   258 	TRequestStatus timerStat;
   258 	TRequestStatus timerStat;
   259 	timer.After(timerStat,20*1000000);
   259 	timer.After(timerStat,20*1000000);
   260 	User::WaitForRequest(timerStat,keyStat);
   260 	User::WaitForRequest(timerStat,keyStat);
       
   261 	TInt key = 0;
   261 	if(keyStat!=KRequestPending)
   262 	if(keyStat!=KRequestPending)
   262 		(void)test.Console()->KeyCode();
   263 		key = test.Console()->KeyCode();
   263 	timer.Cancel();
   264 	timer.Cancel();
   264 	test.Console()->ReadCancel();
   265 	test.Console()->ReadCancel();
   265 	User::WaitForAnyRequest();
   266 	User::WaitForAnyRequest();
   266 
   267 
   267 	test.End();
   268 	test.End();