Update contrib.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // \f32test\loader\tld_helper.cpp
18 #include "t_loader_delete.h"
21 #include <e32ldr_private.h>
26 // don't use JIT if running on emulator because don't want to halt
27 // t_loader_delete test run.
28 User::SetJustInTime(EFalse);
37 p.Panic(_L("tldh-noconn"), 0);
41 User::CommandLine(fn);
46 if (aBuf.FindF(KBadDescriptor) >= 0)
48 const TDesC16 *pBuf = &aBuf;
50 ((int*)pBuf)[0] = 0x7554444f; //malformed descriptor
52 RDebug::Print(_L("Calling RLoader::Delete passing as an argument a malformed descriptor %S\n"),&fn );
56 // panic with the reason from RLoader::Delete so t_loader_delete
57 // can check for the right error code.
58 p.Panic(KTldPanicCat, r);
62 // panic with the reason from RLoader::Delete so t_loader_delete
63 // can check for the right error code.
65 p.Panic(KTldPanicCat, r);
67 // unused return value - present to prevent compiler warning