commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetlangversion.cpp
--- a/commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetlangversion.cpp Thu Aug 19 11:09:10 2010 +0300
+++ b/commonservices/sysutil/test/tef/te_sysutiltestsuite/src/te_sysutilsgetlangversion.cpp Tue Aug 31 16:29:05 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();
}