sl@0: // Copyright (c) 2007-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 the License "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: // e32test/defrag/perf/t_testproc.cpp sl@0: // sl@0: // sl@0: sl@0: #define __E32TEST_EXTENSION__ sl@0: #include sl@0: sl@0: #include "..\d_pagemove.h" sl@0: #include "t_perf.h" sl@0: #include "t_testdll.h" sl@0: sl@0: sl@0: LOCAL_D RTest test(_L("defragtest proc")); sl@0: sl@0: GLDEF_C TInt E32Main() sl@0: { sl@0: sl@0: /* Map the DLL to this process and Run the tests */ sl@0: DllDefrag dll; sl@0: TEST_PRINTF(_L("Test Process: Attempting to Load DLL\n")); sl@0: TInt ret = dll.LoadTheLib(0, test); sl@0: if (ret != KErrNone) sl@0: { sl@0: test.Printf(_L("A Process failed to load the DLL\n")); sl@0: return ret; sl@0: } sl@0: sl@0: //TODO: Touch all the DLL pages ! sl@0: RProcess::Rendezvous(KErrNone); sl@0: for (;;) sl@0: { sl@0: User::AfterHighRes(10000); sl@0: } sl@0: } sl@0: sl@0: