[yast-commit] r67515 - /trunk/yast2/library/control/testsuite/tests/WorkflowManager.ycp
Author: mfilka Date: Wed Feb 22 14:58:21 2012 New Revision: 67515 URL: http://svn.opensuse.org/viewcvs/yast?rev=67515&view=rev Log: fixed testcase for WorkFlow.ycp (corrupted due to fix in FileUtils::Exists) Modified: trunk/yast2/library/control/testsuite/tests/WorkflowManager.ycp Modified: trunk/yast2/library/control/testsuite/tests/WorkflowManager.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/control/testsuite/tests/WorkflowManager.ycp?rev=67515&r1=67514&r2=67515&view=diff ============================================================================== --- trunk/yast2/library/control/testsuite/tests/WorkflowManager.ycp (original) +++ trunk/yast2/library/control/testsuite/tests/WorkflowManager.ycp Wed Feb 22 14:58:21 2012 @@ -7,6 +7,7 @@ map READ = $[ "target" : $[ "size" : 0, + "stat" : $[ "dummy": true ] ], ]; @@ -14,7 +15,9 @@ map EXEC = $[]; -TESTSUITE_INIT([READ, WRITE, EXEC], nil); +list MOCK = [READ, WRITE, EXEC]; + +TESTSUITE_INIT( MOCK, nil); import "WorkflowManager"; import "ProductControl"; @@ -28,29 +31,29 @@ // init <-- -TEST (``(WorkflowManager::SetBaseWorkflow (false)), [], nil); +TEST (``(WorkflowManager::SetBaseWorkflow (false)), MOCK, nil); DUMP (""); DUMP ("Adding new Add-On product"); -TEST (``(WorkflowManager::AddWorkflow (`addon, 3, "")), [], nil); -TEST (``(WorkflowManager::GetAllUsedControlFiles ()), [], nil); +TEST (``(WorkflowManager::AddWorkflow (`addon, 3, "")), MOCK, nil); +TEST (``(WorkflowManager::GetAllUsedControlFiles ()), MOCK, nil); DUMP (""); DUMP ("Adding another Add-On product"); -TEST (``(WorkflowManager::AddWorkflow (`addon, 12, "")), [], nil); -TEST (``(WorkflowManager::GetAllUsedControlFiles ()), [], nil); +TEST (``(WorkflowManager::AddWorkflow (`addon, 12, "")), MOCK, nil); +TEST (``(WorkflowManager::GetAllUsedControlFiles ()), MOCK, nil); DUMP (""); DUMP ("Removing the first Add-On product"); -TEST (``(WorkflowManager::RemoveWorkflow (`addon, 3, "")), [], nil); -TEST (``(WorkflowManager::GetAllUsedControlFiles ()), [], nil); +TEST (``(WorkflowManager::RemoveWorkflow (`addon, 3, "")), MOCK, nil); +TEST (``(WorkflowManager::GetAllUsedControlFiles ()), MOCK, nil); DUMP (""); DUMP ("Removing the first Add-On product"); -TEST (``(WorkflowManager::MergeWorkflows ()), [READ, WRITE, EXEC], nil); +TEST (``(WorkflowManager::MergeWorkflows ()), MOCK, nil); DUMP (""); DUMP ("Current Settings"); -TEST (``(WorkflowManager::DumpCurrentSettings ()), [], nil); +TEST (``(WorkflowManager::DumpCurrentSettings ()), MOCK, nil); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mfilka@svn2.opensuse.org