sl@0: // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // f32test\server\t_fname.cpp sl@0: // sl@0: // sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: LOCAL_D RTest test(_L("T_FNAME")); sl@0: sl@0: GLDEF_C TInt E32Main(void) sl@0: { sl@0: sl@0: test.Title(); sl@0: test.Start(_L("Test Dll::FileName")); sl@0: sl@0: TFileName xfn(RProcess().FileName()); sl@0: TFileName path = PlatSec::ConfigSetting(PlatSec::EPlatSecEnforceSysBin)?_L("Z:\\sys\\bin\\"):_L("Z:\\system\\bin\\"); sl@0: path[0] = xfn[0]; sl@0: RLibrary lib; sl@0: TInt r=lib.Load(_L("t_start1.dll"), path); sl@0: test(r==KErrNone); sl@0: TFileName name; sl@0: name=lib.FileName(); sl@0: path += _L("t_start1.dll"); sl@0: test(name==path); sl@0: lib.Close(); sl@0: sl@0: sl@0: test.End(); sl@0: return(KErrNone); sl@0: } sl@0: