kerneltest/e32test/secure/t_shal.cpp
changeset 121 661475905584
parent 0 a41df078684a
child 257 3e88ff8f41d5
child 271 dc268b18d709
equal deleted inserted replaced
120:b42b9ce90ea9 121:661475905584
   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;
       
   262 	if(keyStat!=KRequestPending)
   261 	if(keyStat!=KRequestPending)
   263 		key = test.Console()->KeyCode();
   262 		(void)test.Console()->KeyCode();
   264 	timer.Cancel();
   263 	timer.Cancel();
   265 	test.Console()->ReadCancel();
   264 	test.Console()->ReadCancel();
   266 	User::WaitForAnyRequest();
   265 	User::WaitForAnyRequest();
   267 
   266 
   268 	test.End();
   267 	test.End();