author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 31 Aug 2010 16:34:26 +0300 | |
branch | RCL_3 |
changeset 43 | c1f20ce4abcf |
parent 0 | a41df078684a |
child 44 | 3e88ff8f41d5 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 1996-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 |
// f32test\server\t_fname.cpp |
|
15 |
// |
|
16 |
// |
|
17 |
||
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
18 |
#define __E32TEST_EXTENSION__ |
0 | 19 |
#include <e32test.h> |
20 |
#include <f32dbg.h> |
|
21 |
#include <e32debug.h> |
|
22 |
||
23 |
||
24 |
LOCAL_D RTest test(_L("T_FNAME")); |
|
25 |
||
26 |
GLDEF_C TInt E32Main(void) |
|
27 |
{ |
|
28 |
||
29 |
test.Title(); |
|
30 |
test.Start(_L("Test Dll::FileName")); |
|
31 |
||
32 |
TFileName xfn(RProcess().FileName()); |
|
33 |
TFileName path = PlatSec::ConfigSetting(PlatSec::EPlatSecEnforceSysBin)?_L("Z:\\sys\\bin\\"):_L("Z:\\system\\bin\\"); |
|
34 |
path[0] = xfn[0]; |
|
35 |
RLibrary lib; |
|
36 |
TInt r=lib.Load(_L("t_start1.dll"), path); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
37 |
test_KErrNone(r); |
0 | 38 |
TFileName name; |
39 |
name=lib.FileName(); |
|
40 |
path += _L("t_start1.dll"); |
|
41 |
test(name==path); |
|
42 |
lib.Close(); |
|
43 |
||
44 |
||
45 |
test.End(); |
|
46 |
return(KErrNone); |
|
47 |
} |
|
48 |