kerneltest/e32test/secure/t_sdrivers.cpp
changeset 121 661475905584
parent 0 a41df078684a
child 257 3e88ff8f41d5
--- a/kerneltest/e32test/secure/t_sdrivers.cpp	Fri Apr 23 22:02:01 2010 +0100
+++ b/kerneltest/e32test/secure/t_sdrivers.cpp	Fri Apr 23 22:08:41 2010 +0100
@@ -367,7 +367,7 @@
 
 	// get another thread to try and call device GetCaps with descriptor in kernel memory...
 	test.Next(_L("Check GetCaps with bad descriptor 2"));
-	r = thread.Create(_L("TestGetCapsThread"),TestGetCapsThread,KDefaultStackSize,0x2000,0x2000,(TAny*)kernelPtr);
+	r = thread.Create(_L("TestGetCapsThread2"),TestGetCapsThread,KDefaultStackSize,0x2000,0x2000,(TAny*)kernelPtr);
 	test_KErrNone(r);
 	thread.Logon(ls);
 	thread.Rendezvous(rs);
@@ -472,9 +472,9 @@
 	TRequestStatus timerStat;
 	timer.After(timerStat,20*1000000);
 	User::WaitForRequest(timerStat,keyStat);
-	TInt key = 0;
 	if(keyStat!=KRequestPending)
-		key = test.Console()->KeyCode();
+		(void)test.Console()->KeyCode();
+
 	timer.Cancel();
 	test.Console()->ReadCancel();
 	User::WaitForAnyRequest();