kerneltest/f32test/server/t_fname.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
    13 // Description:
    13 // Description:
    14 // f32test\server\t_fname.cpp
    14 // f32test\server\t_fname.cpp
    15 // 
    15 // 
    16 //
    16 //
    17 
    17 
       
    18 #define __E32TEST_EXTENSION__
    18 #include <e32test.h>
    19 #include <e32test.h>
    19 #include <f32dbg.h>
    20 #include <f32dbg.h>
    20 #include <e32debug.h>
    21 #include <e32debug.h>
    21 
    22 
    22 
    23 
    31 	TFileName xfn(RProcess().FileName());
    32 	TFileName xfn(RProcess().FileName());
    32 	TFileName path = PlatSec::ConfigSetting(PlatSec::EPlatSecEnforceSysBin)?_L("Z:\\sys\\bin\\"):_L("Z:\\system\\bin\\");
    33 	TFileName path = PlatSec::ConfigSetting(PlatSec::EPlatSecEnforceSysBin)?_L("Z:\\sys\\bin\\"):_L("Z:\\system\\bin\\");
    33 	path[0] = xfn[0];
    34 	path[0] = xfn[0];
    34 	RLibrary lib;
    35 	RLibrary lib;
    35 	TInt r=lib.Load(_L("t_start1.dll"), path);
    36 	TInt r=lib.Load(_L("t_start1.dll"), path);
    36 	test(r==KErrNone);
    37 	test_KErrNone(r);
    37 	TFileName name;
    38 	TFileName name;
    38 	name=lib.FileName();
    39 	name=lib.FileName();
    39 	path += _L("t_start1.dll");
    40 	path += _L("t_start1.dll");
    40 	test(name==path);
    41 	test(name==path);
    41 	lib.Close();
    42 	lib.Close();