os/kernelhwsrv/kerneltest/e32test/defrag/perf/t_testproc.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // e32test/defrag/perf/t_testproc.cpp
    15 // 
    16 //
    17 
    18 #define __E32TEST_EXTENSION__
    19 #include <e32test.h>
    20 
    21 #include "..\d_pagemove.h"
    22 #include "t_perf.h"
    23 #include "t_testdll.h"
    24 
    25 
    26 LOCAL_D RTest test(_L("defragtest proc"));
    27 
    28 GLDEF_C TInt E32Main()
    29 	{
    30 	
    31 	/* Map the DLL to this process and Run the tests */
    32 	DllDefrag dll;
    33 	TEST_PRINTF(_L("Test Process: Attempting to Load DLL\n"));
    34 	TInt ret = dll.LoadTheLib(0, test);
    35 	if (ret != KErrNone) 
    36 		{
    37 		test.Printf(_L("A Process failed to load the DLL\n"));
    38 		return ret;
    39 		}
    40 
    41 	//TODO: Touch all the DLL pages !
    42 	RProcess::Rendezvous(KErrNone);
    43 	for (;;)
    44 		{
    45 		User::AfterHighRes(10000);
    46 		}
    47 	}
    48 
    49