3
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* e32test\dll\t_oeexport.cpp*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
/**
|
|
20 |
|
|
21 |
Overview:
|
|
22 |
|
|
23 |
Tests it is possible to retrieve the 0th ordinal from exes and dlls
|
|
24 |
|
|
25 |
that are marked as having named symbol export data. This is loaded
|
|
26 |
|
|
27 |
as non-XIP so loader fixups of 0th ordinal imports can be tested
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
API Information:
|
|
32 |
|
|
33 |
RProcess, RLibrary
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
Details:
|
|
38 |
|
|
39 |
- Test reading 0th ordinal from a dll which has a E32EpocExpSymInfoHdr
|
|
40 |
|
|
41 |
struct at the 0th ordinal and verify the contents of the header
|
|
42 |
|
|
43 |
- Test attempts to get the 0th ordinal from a dll without the named symbol
|
|
44 |
|
|
45 |
data returns NULL
|
|
46 |
|
|
47 |
- Test reading the named symbol data from an exe that contains a
|
|
48 |
|
|
49 |
E32EpocExpSymInfoHdr struct at the 0th ordinal and verify the contents
|
|
50 |
|
|
51 |
- Test import fixups has correctly fixed up the 0th ordinal of the static
|
|
52 |
|
|
53 |
dependencies to this stdexe
|
|
54 |
|
|
55 |
- Test NULL is returned when attempting to read the 0th ordinal of
|
|
56 |
|
|
57 |
an exe that doesn't contain a E32EpocExpSymInfoHdr
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
Platforms/Drives/Compatibility:
|
|
62 |
|
|
63 |
All
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
Assumptions/Requirement/Pre-requisites:
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
Failures and causes:
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
Base Port information:
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
*/
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
namespace std
|
|
90 |
|
|
91 |
{
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
bool uncaught_exception()
|
|
96 |
|
|
97 |
{
|
|
98 |
|
|
99 |
return false;
|
|
100 |
|
|
101 |
}
|
|
102 |
|
|
103 |
}
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
#include <t_oedll.h>
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
TInt E32Main()
|
|
114 |
|
|
115 |
{
|
|
116 |
|
|
117 |
return KErrNone;
|
|
118 |
|
|
119 |
}
|
|
120 |
|