diff -r 072a9626b290 -r 09d657f1ee00 commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetlangversion.cpp --- a/commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetlangversion.cpp Wed Aug 18 11:03:14 2010 +0300 +++ b/commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetlangversion.cpp Thu Sep 02 21:48:26 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -28,6 +28,7 @@ CSysUtilsGetLangVersionStep::~CSysUtilsGetLangVersionStep() { + SetTestPath(EFalse); } /** @@ -63,7 +64,7 @@ version.Insert(0,KDummy); - TInt fileErr = CheckIsFileExist( _L("Z:\\resource\\versions\\lang.txt")); + TInt fileErr = CheckIsFileExist( _L("C:\\versions\\lang.txt")); /* This test is not valid if file does not exist * Reason for missing file is that "english engineering" package @@ -80,7 +81,7 @@ } INFO_PRINTF1(_L("Deleted P&S properties successfully.")); - err = SetTestPath(EFalse); + err = SetTestPath(ETrue); if( err != KErrNone ) { ERR_PRINTF2(_L("Could not turn test path off. Error = %d"), err); @@ -119,7 +120,11 @@ if (version.Compare(testBuf)!=0) { ERR_PRINTF1(_L("language version formatted incorrectly")); + INFO_PRINTF1(_L("From ini file: ")); INFO_PRINTF1(testBuf); + INFO_PRINTF1(_L("From txt file: ")); + INFO_PRINTF1(version); + INFO_PRINTF2(_L("Comparison returned value %d"), version.Compare(testBuf)); SetTestStepResult(EFail); } else @@ -137,7 +142,8 @@ ERR_PRINTF1(_L("Lang.txt is missing, should be included to base packets")); SetTestStepResult(EFail); } - + + SetTestPath(EFalse); return TestStepResult(); }