lowlevellibsandfws/pluginfw/Framework/NotificationTest/t_ecomcancel.cpp
changeset 44 97b0fb8a2cc2
parent 0 e4d67989cc36
child 57 2efc27d87e1c
--- a/lowlevellibsandfws/pluginfw/Framework/NotificationTest/t_ecomcancel.cpp	Mon May 03 14:06:43 2010 +0300
+++ b/lowlevellibsandfws/pluginfw/Framework/NotificationTest/t_ecomcancel.cpp	Tue Jul 20 16:35:53 2010 +0530
@@ -743,11 +743,16 @@
 	TheTest.Title();
 	TheTest.Start(_L("Starting tests..."));
 	TInt err = KErrNone;
+	TInt r = KErrNone;
 
 	CTrapCleanup* cleanup = CTrapCleanup::New();
 	CActiveScheduler* scheduler = new(ELeave)CActiveScheduler;
 	CActiveScheduler::Install(scheduler);
-	TheFs.Connect();
+	r = TheFs.Connect();
+	if (r != KErrNone)
+		{
+			return r;
+		}
 
     // Reset the test environment under textshell in emulator/ROM
 	TRAP(err, ResetEComEnvironmentL());