diff -r d45b74d3fb20 -r d57b86b1867a kerneltest/f32test/server/t_fatcharsetconv_SpecificCases.cpp --- a/kerneltest/f32test/server/t_fatcharsetconv_SpecificCases.cpp Tue Aug 31 11:40:45 2010 +0100 +++ b/kerneltest/f32test/server/t_fatcharsetconv_SpecificCases.cpp Mon Sep 13 15:16:07 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" @@ -16,14 +16,14 @@ */ #define __E32TEST_EXTENSION__ -#include "T_Fatcharsetconv_aux.h" +#include "t_fatcharsetconv_aux.h" #include #include #include -#include +#include #include #include -#include "..\server\t_server.h" +#include "../server/t_server.h" //#include "fat_utils.h" @@ -572,15 +572,9 @@ gLogFailureData.iTCTypeName = KSymbianFATSpecific; gLogFailureData.iAPIName= KNone; - // Store current file name - TFileName fileName; - TInt i=0; - while(__FILE__[i]!='\0') - { - fileName.SetLength(i+1); - fileName[i] = __FILE__[i++]; - } - gFileName = fileName; + // the preprocessor macro gives a C/C++ zero-terminated string; use overloaded ::Copy() + // Why oh why does TPtrC8 not have a "char *" constructor ... + gFileName.Copy(TPtrC8((const TUint8*)__FILE__)); gLogFailureData.iFuncName = KTestLeadingE5Handling; TestLeadingE5Handling();