systemhealthmanagement/systemhealthmgr/test/tsysmon/src/tsysmon_step_run_count_check.cpp
--- a/systemhealthmanagement/systemhealthmgr/test/tsysmon/src/tsysmon_step_run_count_check.cpp Wed Aug 18 11:03:14 2010 +0300
+++ b/systemhealthmanagement/systemhealthmgr/test/tsysmon/src/tsysmon_step_run_count_check.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"
@@ -37,10 +37,12 @@
TInt expectedRunCount = 0;
TInt expectedRegisterCount = 0;
TInt expectedRestartCount = 0;
+ TInt processArguments = 0;
if (!GetStringFromConfig(ConfigSection(), KTSysMonServerFilename, filename) ||
!GetIntFromConfig(ConfigSection(), KTSysMonServerExpectedRunCount, expectedRunCount) ||
!GetIntFromConfig(ConfigSection(), KTSysMonServerExpectedRegisterCount, expectedRegisterCount) ||
- !GetIntFromConfig(ConfigSection(), KTSysMonServerExpectedRestartCount, expectedRestartCount))
+ !GetIntFromConfig(ConfigSection(), KTSysMonServerExpectedRestartCount, expectedRestartCount) ||
+ !GetIntFromConfig(ConfigSection(), KTSysMonServerProcessArguments, processArguments))
{
ERR_PRINTF1(_L("Error reading ini file data"));
User::Leave(KErrNotFound);
@@ -51,7 +53,7 @@
TInt actualRegisterCount = 0;
TInt actualRestartCount = 0;
actualRunCount = CSysMonTestHelper::ReadRunCountL(filename);
- actualRegisterCount = CSysMonTestHelper::GetRegisterCountL();
+ actualRegisterCount = CSysMonTestHelper::GetRegisterCount(processArguments);
actualRestartCount = CSysMonTestHelper::GetRestartCountL();
INFO_PRINTF2(_L("Actual run count: %d"), actualRunCount);