kerneltest/e32test/active/t_ctimer.cpp
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
--- a/kerneltest/e32test/active/t_ctimer.cpp	Tue Aug 31 16:34:26 2010 +0300
+++ b/kerneltest/e32test/active/t_ctimer.cpp	Wed Sep 01 12:34:56 2010 +0100
@@ -28,7 +28,6 @@
 // and check for panic.
 // - Call absolute timer's At function without adding it to the active scheduler and 
 // check for panic.
-// - Call 1s inactivity timer
 // - Check if heap has been corrupted by the tests.
 // Platforms/Drives/Compatibility:
 // All.
@@ -78,15 +77,6 @@
 	static TInt iTotalCount;
 	};
 
-// for inactivity test
-class myInactTimer : public CTimer
-	{
-public:
-	myInactTimer(const TInt aPriority):CTimer(aPriority){;}
-	void RunL(void);	
-	void Start(void);
-	};
-
 TInt myTimer::iTotalCount;
 TInt myTimer::iNum;
 
@@ -118,23 +108,6 @@
 	CActiveScheduler::Add(this);
 	}
 
-void myInactTimer::RunL(void)
-//
-// Timer has completed
-//
-	{
-	CActiveScheduler::Stop();
-	}
-
-void myInactTimer::Start(void)
-//
-// Start a timer going.
-//
-	{
-	ConstructL();
-	CActiveScheduler::Add(this);
-	}
-
 LOCAL_D TInt ThreadEntry(TAny* aDirective)
 //
 // Test thread
@@ -224,22 +197,12 @@
 	CActiveScheduler::Start();
 	test(A[0]==ID1 && pTimer1->iStatus==KErrNone);
 //
-	test.Next(_L("Inactivity 1s"));
-	User::ResetInactivityTime();
-	myInactTimer* pInactTimer=new myInactTimer(0);
-	pInactTimer->Start();
-	test.Printf(_L("inactivity..."));
-	pInactTimer->Inactivity(1);
-	CActiveScheduler::Start();
-	test.Printf(_L("...back"));
-	test(pInactTimer->iStatus==KErrNone);
-//
+
 	test.Next(_L("Destroy objects"));
 	delete pTimer1;
 	delete pTimer2;
 	delete pTimer3;
 	delete pRepeater;
-	delete pInactTimer;
 //
 	test.End();
 	}