|
1 // Copyright (c) 1995-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\dll\t_tstart.cpp |
|
15 // Overview: |
|
16 // Check DLLs are started in correct order |
|
17 // API Information: |
|
18 // N/A |
|
19 // Details: |
|
20 // - Test and verify that DLLs are started in correct order |
|
21 // Platforms/Drives/Compatibility: |
|
22 // All. |
|
23 // Assumptions/Requirement/Pre-requisites: |
|
24 // Failures and causes: |
|
25 // Base Port information: |
|
26 // |
|
27 // |
|
28 |
|
29 #include <e32test.h> |
|
30 |
|
31 LOCAL_D RTest test(_L("T_TSTART")); |
|
32 |
|
33 IMPORT_C TUint32 GetStartTime1(); |
|
34 IMPORT_C TUint32 GetStartTime3(); |
|
35 IMPORT_C TUint32 GetStartTime2(); |
|
36 |
|
37 GLDEF_C TInt E32Main() |
|
38 { |
|
39 test.Title(); |
|
40 // |
|
41 test.Start(_L("Checking Dlls started in correct order")); |
|
42 |
|
43 TUint32 start1=GetStartTime1(); |
|
44 TUint32 start2=GetStartTime2(); |
|
45 TUint32 start3=GetStartTime3(); |
|
46 test.Printf(_L("Start tickcount for Dlls T_START1, T_START2 and T_START3 are:\n")); |
|
47 test.Printf(_L(" %08x %08x %08x\n"), start1,start2, start3); |
|
48 test(start2>start1); |
|
49 test(start3>start2); |
|
50 |
|
51 test.End(); |
|
52 return 0; |
|
53 } |
|
54 |