messagingfw/msgtestfw/TestActions/Base/corruption/src/CMtfTestActionCorruptFile.cpp
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
equal deleted inserted replaced
55:6f4453afd006 58:6c34d0baa0b1
   105 	TestCase().INFO_PRINTF2(_L("Corruption Type = %d"), corruptionType);
   105 	TestCase().INFO_PRINTF2(_L("Corruption Type = %d"), corruptionType);
   106 
   106 
   107 	*paramFilePath = aFilePath;
   107 	*paramFilePath = aFilePath;
   108 
   108 
   109 	RFs aFs;
   109 	RFs aFs;
   110 	aFs.Connect();
   110 	TInt err = aFs.Connect();
       
   111 	User::LeaveIfError(err);
   111 	CleanupClosePushL(aFs);
   112 	CleanupClosePushL(aFs);
   112 
   113 
   113 	// corrupt the file
   114 	// corrupt the file
   114 	CorruptFileLC(aFs, *paramFilePath, corruptionType);	
   115 	CorruptFileLC(aFs, *paramFilePath, corruptionType);	
   115 	
   116