lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_processfilemandeletefile.cpp
changeset 52 bf6a71c50e42
parent 0 e4d67989cc36
child 57 2efc27d87e1c
--- a/lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_processfilemandeletefile.cpp	Fri Jun 11 15:26:22 2010 +0300
+++ b/lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_processfilemandeletefile.cpp	Wed Aug 18 11:27:44 2010 +0300
@@ -23,8 +23,13 @@
 
 void DeleteFileL(const TDesC& aFile)
 	{
+	TInt r = KErrNone;	
 	RFs fs;
-	fs.Connect();
+	r = fs.Connect();
+	if (r != KErrNone)
+		{
+			User::Leave(r);
+		}
 	CleanupClosePushL(fs);
 	
 	CFileMan* fileMan = CFileMan::NewL(fs);