diff -r 072a9626b290 -r 09d657f1ee00 commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetprinformation.cpp --- a/commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetprinformation.cpp Wed Aug 18 11:03:14 2010 +0300 +++ b/commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetprinformation.cpp Thu Sep 02 21:48:26 2010 +0300 @@ -1,4 +1,4 @@ -// 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 "Eclipse Public License v1.0" @@ -28,6 +28,7 @@ */ CSysUtilsGetPRInformationStep::~CSysUtilsGetPRInformationStep() { + SetTestPath(EFalse); } /** @@ -62,8 +63,7 @@ TBuf16 version; version.Insert(0,KDummy); - TInt fileErr = CheckIsFileExist( _L("Z:\\resource\\versions\\purpose.txt")); - + TInt fileErr = CheckIsFileExist( _L("C:\\versions\\purpose.txt")); if(fileErr == KErrNone) { err = DeletePSProperties(); @@ -75,7 +75,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); @@ -112,7 +112,11 @@ if (version.Compare(testBuf)!=0) { ERR_PRINTF1(_L("PR Information formatted incorrectly")); - INFO_PRINTF1(testBuf); + 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 @@ -130,6 +134,8 @@ ERR_PRINTF1(_L("purpose.txt is missing, should be included to base packets")); SetTestStepResult(EFail); } + + err = SetTestPath(EFalse); return TestStepResult(); }