commonservices/sysutil/test/tef/te_sysutilburtestsuite/src/te_sysutiltestversioninfo.cpp
equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
96 Call all the version APIs and check that the retrieved values and returned |
96 Call all the version APIs and check that the retrieved values and returned |
97 error codes are those that we expect. |
97 error codes are those that we expect. |
98 */ |
98 */ |
99 void CSysUtilTestVersionInfoStep::TestAllAPIsL() |
99 void CSysUtilTestVersionInfoStep::TestAllAPIsL() |
100 { |
100 { |
101 TBool passed = ETrue; |
101 SetTestPath(EFalse); |
102 TInt error = SetTestPath(ETrue); |
102 |
103 if(KErrNone != error) |
103 TBool passed = ETrue; |
104 { |
|
105 RDebug::Printf("Setting test path to ETrue failed with error %d", error); |
|
106 passed = EFalse; |
|
107 } |
|
108 |
104 |
109 TBuf16<KSysUtilVersionTextLength> actualValue; |
105 TBuf16<KSysUtilVersionTextLength> actualValue; |
110 RDebug::Printf("Testing SW Version \n"); |
106 RDebug::Printf("Testing SW Version \n"); |
111 TInt actualError = SysUtil::GetSWVersion(actualValue); |
107 TInt actualError = SysUtil::GetSWVersion(actualValue); |
112 if(KSWVersionError != actualError) |
108 if(KSWVersionError != actualError) |