kerneltest/e32test/bench/t_dhry.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
   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;
   386 	if(keyStat!=KRequestPending)
   387 	if(keyStat!=KRequestPending)
   387 		(void)test.Console()->KeyCode();
   388 		key = test.Console()->KeyCode();
   388 	timer.Cancel();
   389 	timer.Cancel();
   389 	test.Console()->ReadCancel();
   390 	test.Console()->ReadCancel();
   390 	User::WaitForAnyRequest();
   391 	User::WaitForAnyRequest();
   391 	}
   392 	}
   392 #endif
   393 #endif