commonservices/sysutil/test/tef/te_sysutilburtestsuite/src/te_sysutiltestversioninfo.cpp
changeset 63 09d657f1ee00
parent 0 4e1aa6a622a0
child 61 8cb079868133
equal deleted inserted replaced
54:072a9626b290 63:09d657f1ee00
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 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 	SetTestPath(EFalse);
   101     TBool passed = ETrue;
   102 	
   102 	TInt error = SetTestPath(ETrue);
   103 	TBool passed = ETrue;
   103 	if(KErrNone != error)
       
   104 	    {
       
   105 	    RDebug::Printf("Setting test path to ETrue failed with error %d", error);
       
   106 	    passed = EFalse;
       
   107 	    }
   104 	
   108 	
   105 	TBuf16<KSysUtilVersionTextLength> actualValue;
   109 	TBuf16<KSysUtilVersionTextLength> actualValue;
   106 	RDebug::Printf("Testing SW Version \n");
   110 	RDebug::Printf("Testing SW Version \n");
   107 	TInt actualError = SysUtil::GetSWVersion(actualValue);
   111 	TInt actualError = SysUtil::GetSWVersion(actualValue);
   108 	if(KSWVersionError != actualError)
   112 	if(KSWVersionError != actualError)