sl@0: /* sl@0: * Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include "T_InvalidFontFile.h" sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: Simple application to remove the invalid font file created by T_WriteInvalidFontFile.exe. sl@0: These applications are seperate from the test code and each other so they can have the sl@0: capability Tcb in order to write to the \resource\* directory. sl@0: */ sl@0: LOCAL_C void MainL() sl@0: { sl@0: RFs fs; sl@0: CleanupClosePushL(fs); sl@0: User::LeaveIfError(fs.Connect()); sl@0: sl@0: User::LeaveIfError(fs.Delete(KEclipsingFile)); sl@0: sl@0: CleanupStack::PopAndDestroy(&fs); sl@0: } sl@0: sl@0: GLDEF_C TInt E32Main() sl@0: { sl@0: __UHEAP_MARK; sl@0: CTrapCleanup* cleanup = CTrapCleanup::New(); sl@0: TRAPD(mainError, MainL()); sl@0: if (mainError != KErrNone) sl@0: { sl@0: RDebug::Printf("T_RemoveInvalidFontFile.exe failed with error %i", mainError); sl@0: } sl@0: delete cleanup; sl@0: __UHEAP_MARKEND; sl@0: return KErrNone; sl@0: } sl@0: