equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
65 SetTestStepResult(EPass); |
65 SetTestStepResult(EPass); |
66 TInt err; |
66 TInt err; |
67 |
67 |
68 RFs fs; |
68 RFs fs; |
69 fs.Connect(); |
69 fs.Connect(); |
|
70 |
|
71 CleanupClosePushL(fs); |
70 CFileMan* fileMan = CFileMan::NewL(fs); |
72 CFileMan* fileMan = CFileMan::NewL(fs); |
71 CleanupStack::PushL(fileMan); |
73 CleanupStack::PushL(fileMan); |
72 |
74 |
73 // Make the files writeable |
75 // Make the files writeable |
74 MakeFilesWritable(*fileMan, KDelDirTCAFSub2()); |
76 MakeFilesWritable(*fileMan, KDelDirTCAFSub2()); |
93 RDebug::Print(_L("CFileMan Delete file %S - err = %d\n"), &KDelDirRTA, err); |
95 RDebug::Print(_L("CFileMan Delete file %S - err = %d\n"), &KDelDirRTA, err); |
94 if((err!=KErrNone) && (err !=KErrPathNotFound)) |
96 if((err!=KErrNone) && (err !=KErrPathNotFound)) |
95 SetTestStepResult(EFail); |
97 SetTestStepResult(EFail); |
96 |
98 |
97 CleanupStack::PopAndDestroy(fileMan); |
99 CleanupStack::PopAndDestroy(fileMan); |
98 fs.Close(); |
100 CleanupStack::PopAndDestroy(&fs); |
99 |
101 |
100 __UHEAP_MARKEND; |
102 __UHEAP_MARKEND; |
101 return TestStepResult(); |
103 return TestStepResult(); |
102 } |
104 } |
103 |
105 |