kerneltest/e32test/nkern/t_nktrace.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
   149 	RTimer timer;
   149 	RTimer timer;
   150 	test(timer.CreateLocal()==KErrNone);
   150 	test(timer.CreateLocal()==KErrNone);
   151 	TRequestStatus timerStat;
   151 	TRequestStatus timerStat;
   152 	timer.After(timerStat,10*1000000);
   152 	timer.After(timerStat,10*1000000);
   153 	User::WaitForRequest(timerStat,keyStat);
   153 	User::WaitForRequest(timerStat,keyStat);
   154 	TInt key;
   154 	(void)test.Console()->KeyCode();
   155 	if(keyStat!=KRequestPending)
       
   156 		key = test.Console()->KeyCode();
       
   157 	timer.Cancel();
   155 	timer.Cancel();
   158 	test.Console()->ReadCancel();
   156 	test.Console()->ReadCancel();
   159 	User::WaitForAnyRequest();
   157 	User::WaitForAnyRequest();
   160 
   158 
   161 	test.Printf(_L("\n"));
   159 	test.Printf(_L("\n"));