author | Mike Kinghan <mikek@symbian.org> |
Wed, 21 Jul 2010 12:04:49 +0100 | |
branch | GCC_SURGE |
changeset 215 | 8096a832df02 |
parent 0 | a41df078684a |
permissions | -rw-r--r-- |
0 | 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 |
||
215
8096a832df02
Fix for bug 3322 - Non-portable case-sensitivity and path-delimiter fluff in e32test build
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
21 |
#include "../d_pagemove.h" |
0 | 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 |