kerneltest/e32test/bench/t_dhry.cpp
changeset 121 661475905584
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
120:b42b9ce90ea9 121:661475905584
   381 	RTimer timer;
   381 	RTimer timer;
   382 	test(timer.CreateLocal()==KErrNone);
   382 	test(timer.CreateLocal()==KErrNone);
   383 	TRequestStatus timerStat;
   383 	TRequestStatus timerStat;
   384 	timer.After(timerStat,20*1000000);
   384 	timer.After(timerStat,20*1000000);
   385 	User::WaitForRequest(timerStat,keyStat);
   385 	User::WaitForRequest(timerStat,keyStat);
   386 	TInt key = 0;
       
   387 	if(keyStat!=KRequestPending)
   386 	if(keyStat!=KRequestPending)
   388 		key = test.Console()->KeyCode();
   387 		(void)test.Console()->KeyCode();
   389 	timer.Cancel();
   388 	timer.Cancel();
   390 	test.Console()->ReadCancel();
   389 	test.Console()->ReadCancel();
   391 	User::WaitForAnyRequest();
   390 	User::WaitForAnyRequest();
   392 	}
   391 	}
   393 #endif
   392 #endif