|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Old Test CaseID APPFWK-SSS-0004 |
|
15 // New Test CaseID DEVSRVS-SSMA-STARTSAFE-0004 |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @test |
|
22 @internalComponent - Internal Symbian test code |
|
23 */ |
|
24 |
|
25 |
|
26 #include "tss_appstartmultiple.h" |
|
27 |
|
28 |
|
29 const TInt KSsTestAppStartTimeout = 3000; // ms |
|
30 const TInt KInduceTimeoutFailWaitTime = 300; //ms |
|
31 const TInt KTestMultiRetries = 5; // for a successful start this value must exceed KDontRvCount (declared in ssmtestapprvafterretry.h) |
|
32 |
|
33 |
|
34 |
|
35 TVerdict CSsTestStepAppStartMultiple::doTestStepL() |
|
36 { |
|
37 __UHEAP_MARK; |
|
38 |
|
39 TRAPD(err, DoTestMultiAppAsyncL()); |
|
40 TEST(err == KErrNone); |
|
41 INFO_PRINTF2(_L("DoTestMultiAppAsyncL completed with err = %d"), err); |
|
42 |
|
43 TRAP(err, DoTestMultiAppWithTimeoutAsyncL()); |
|
44 TEST(err == KErrNone); |
|
45 INFO_PRINTF2(_L("DoTestMultiAppWithTimeoutAsyncL completed with err = %d"), err); |
|
46 |
|
47 TRAP(err, DoTestMultiAppAllTimeoutAsyncL()); |
|
48 TEST(err == KErrNone); |
|
49 INFO_PRINTF2(_L("DoTestMultiAppAllTimeoutAsyncL completed with err = %d"), err); |
|
50 |
|
51 TRAP(err, DoTestMultiAppIncludingRetryAsyncL()); |
|
52 TEST(err == KErrNone); |
|
53 INFO_PRINTF2(_L("DoTestMultiAppIncludingRetryAsyncL completed with err = %d"), err); |
|
54 |
|
55 TRAP(err, DoTestMultiProcAsyncL()); |
|
56 TEST(err == KErrNone); |
|
57 INFO_PRINTF2(_L("DoTestMultiProcAsyncL completed with err = %d"), err); |
|
58 |
|
59 TRAP(err, DoTestMultiProcWithTimeoutAsyncL()); |
|
60 TEST(err == KErrNone); |
|
61 INFO_PRINTF2(_L("DoTestMultiProcWithTimeoutAsyncL completed with err = %d"), err); |
|
62 |
|
63 TRAP(err, DoTestMultiProcAllTimeoutAsyncL()); |
|
64 TEST(err == KErrNone); |
|
65 INFO_PRINTF2(_L("DoTestMultiProcAllTimeoutAsyncL completed with err = %d"), err); |
|
66 |
|
67 TRAP(err, DoTestMultiProcIncludingRetryAsyncL()); |
|
68 TEST(err == KErrNone); |
|
69 INFO_PRINTF2(_L("DoTestMultiProcIncludingRetryAsyncL completed with err = %d"), err); |
|
70 |
|
71 __UHEAP_MARKEND; |
|
72 return TestStepResult(); |
|
73 } |
|
74 |
|
75 |
|
76 |
|
77 // |
|
78 // START AS APPS |
|
79 // |
|
80 /** |
|
81 Concurrently starts four instances of ssmtestappgood.exe |
|
82 There is no timeout specified, therefore no instances of CTimeoutWaiter are constructed. |
|
83 */ |
|
84 void CSsTestStepAppStartMultiple::DoTestMultiAppAsyncL() |
|
85 { |
|
86 |
|
87 INFO_PRINTF1( _L("\n\n Performing Multiple App-Start Async test---no timeout") ); |
|
88 |
|
89 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
90 CleanupStack::PushL( startupProperties_0 ); |
|
91 |
|
92 // Slightly cheeky. Use the same startup properties for each call |
|
93 startupProperties_0->SetFileParamsL( KTestAppGood, KNullDesC ); |
|
94 startupProperties_0->SetCommandTypeL( ESsmCmdStartApp ); |
|
95 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
96 |
|
97 RProcess process_0; |
|
98 CleanupClosePushL( process_0 ); |
|
99 RProcess process_1; |
|
100 CleanupClosePushL( process_1 ); |
|
101 RProcess process_2; |
|
102 CleanupClosePushL( process_2 ); |
|
103 RProcess process_3; |
|
104 CleanupClosePushL( process_3 ); |
|
105 |
|
106 TInt id_0 = 0; |
|
107 TInt id_1 = 0; |
|
108 TInt id_2 = 0; |
|
109 TInt id_3 = 0; |
|
110 |
|
111 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
112 CleanupStack::PushL( ack_0 ); |
|
113 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
114 CleanupStack::PushL( ack_1 ); |
|
115 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
116 CleanupStack::PushL( ack_2 ); |
|
117 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
118 CleanupStack::PushL( ack_3 ); |
|
119 |
|
120 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
121 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
122 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 2); |
|
123 CleanupStack::PushL( pauseStopper ); |
|
124 |
|
125 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
126 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
127 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
128 ss->Start(*startupProperties_0, process_3, ack_3->iStatus, id_3); |
|
129 |
|
130 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
131 //Process are started using Wait for start execution behaviour, |
|
132 //Start method always sets TRequestStatus to KRequestPending. |
|
133 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
134 { |
|
135 CActiveScheduler::Start(); |
|
136 |
|
137 TBuf<KMaxFileName> buf( process_0.FileName() ); |
|
138 INFO_PRINTF2( _L("process_0 filename %S"), &buf ); |
|
139 |
|
140 buf.Copy( process_1.FileName() ); |
|
141 INFO_PRINTF2( _L("process_1 filename %S"), &buf ); |
|
142 |
|
143 buf.Copy( process_2.FileName() ); |
|
144 INFO_PRINTF2( _L("process_2 filename %S"), &buf ); |
|
145 |
|
146 buf.Copy( process_3.FileName() ); |
|
147 INFO_PRINTF2( _L("process_3 filename %S"), &buf ); |
|
148 |
|
149 |
|
150 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
151 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrNone, KErrNone, KErrNone, KErrNone ); |
|
152 |
|
153 TEST( ack_0->iStatus == KErrNone ); |
|
154 TEST( ack_1->iStatus == KErrNone ); |
|
155 TEST( ack_2->iStatus == KErrNone ); |
|
156 TEST( ack_3->iStatus == KErrNone ); |
|
157 } |
|
158 |
|
159 CleanupStack::PopAndDestroy( 11, startupProperties_0 ); |
|
160 |
|
161 TEST( 4 == FindAndKill(KTestAppGood) ); |
|
162 } |
|
163 |
|
164 |
|
165 |
|
166 /** |
|
167 Concurrently starts four instances of ssmtestappgood.exe |
|
168 A timeout value is specified which ensures that intances of CTimeoutWaiter are created |
|
169 */ |
|
170 void CSsTestStepAppStartMultiple::DoTestMultiAppWithTimeoutAsyncL() |
|
171 { |
|
172 |
|
173 INFO_PRINTF1( _L("\n\n Performing Multiple App-Start Async test---*with* timeout") ); |
|
174 |
|
175 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
176 CleanupStack::PushL( startupProperties_0 ); |
|
177 |
|
178 // Slightly cheeky. Use the same startup properties for each call |
|
179 // Timeout is specified, therefore there are instances of CTimeoutWaiter constructed. |
|
180 startupProperties_0->SetFileParamsL( KTestAppGood, KNullDesC ); |
|
181 startupProperties_0->SetCommandTypeL( ESsmCmdStartApp ); |
|
182 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
183 startupProperties_0->SetTimeout( KSsTestAppStartTimeout ); |
|
184 |
|
185 RProcess process_0; |
|
186 CleanupClosePushL( process_0 ); |
|
187 RProcess process_1; |
|
188 CleanupClosePushL( process_1 ); |
|
189 RProcess process_2; |
|
190 CleanupClosePushL( process_2 ); |
|
191 RProcess process_3; |
|
192 CleanupClosePushL( process_3 ); |
|
193 |
|
194 TInt id_0 = 0; |
|
195 TInt id_1 = 0; |
|
196 TInt id_2 = 0; |
|
197 TInt id_3 = 0; |
|
198 |
|
199 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
200 CleanupStack::PushL( ack_0 ); |
|
201 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
202 CleanupStack::PushL( ack_1 ); |
|
203 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
204 CleanupStack::PushL( ack_2 ); |
|
205 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
206 CleanupStack::PushL( ack_3 ); |
|
207 |
|
208 |
|
209 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
210 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 5 ); |
|
211 CleanupStack::PushL( pauseStopper ); |
|
212 |
|
213 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
214 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
215 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
216 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
217 ss->Start(*startupProperties_0, process_3, ack_3->iStatus, id_3); |
|
218 |
|
219 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
220 //Process are started using Wait for start execution behaviour, |
|
221 //Start method always sets TRequestStatus to KRequestPending. |
|
222 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
223 { |
|
224 CActiveScheduler::Start(); |
|
225 |
|
226 TBuf<KMaxFileName> buf( process_0.FileName() ); |
|
227 INFO_PRINTF2( _L("process_0 filename %S"), &buf ); |
|
228 |
|
229 buf.Copy( process_1.FileName() ); |
|
230 INFO_PRINTF2( _L("process_1 filename %S"), &buf ); |
|
231 |
|
232 buf.Copy( process_2.FileName() ); |
|
233 INFO_PRINTF2( _L("process_2 filename %S"), &buf ); |
|
234 |
|
235 buf.Copy( process_3.FileName() ); |
|
236 INFO_PRINTF2( _L("process_3 filename %S"), &buf ); |
|
237 |
|
238 |
|
239 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
240 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrNone, KErrNone, KErrNone, KErrNone ); |
|
241 |
|
242 TEST( ack_0->iStatus == KErrNone ); |
|
243 TEST( ack_1->iStatus == KErrNone ); |
|
244 TEST( ack_2->iStatus == KErrNone ); |
|
245 TEST( ack_3->iStatus == KErrNone ); |
|
246 } |
|
247 |
|
248 CleanupStack::PopAndDestroy( 11, startupProperties_0 ); |
|
249 |
|
250 TEST( 4 == FindAndKill(KTestAppGood) ); |
|
251 } |
|
252 |
|
253 |
|
254 |
|
255 /** |
|
256 Concurrently starts four instances of ssmtestappnorv.exe |
|
257 All of these timeout (naturalment) |
|
258 */ |
|
259 void CSsTestStepAppStartMultiple::DoTestMultiAppAllTimeoutAsyncL() |
|
260 { |
|
261 |
|
262 INFO_PRINTF1( _L("\n\n Performing Multiple App-Start Async test---ALL timeout") ); |
|
263 |
|
264 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
265 CleanupStack::PushL( startupProperties_0 ); |
|
266 |
|
267 // Slightly cheeky. Use the same startup properties for each call |
|
268 // Timeout is specified, therefore there are instances of CTimeoutWaiter constructed. |
|
269 startupProperties_0->SetFileParamsL( KTestAppNoRv, KNullDesC ); |
|
270 startupProperties_0->SetCommandTypeL( ESsmCmdStartApp ); |
|
271 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
272 startupProperties_0->SetTimeout( KInduceTimeoutFailWaitTime ); |
|
273 |
|
274 RProcess process_0; |
|
275 CleanupClosePushL( process_0 ); |
|
276 RProcess process_1; |
|
277 CleanupClosePushL( process_1 ); |
|
278 RProcess process_2; |
|
279 CleanupClosePushL( process_2 ); |
|
280 RProcess process_3; |
|
281 CleanupClosePushL( process_3 ); |
|
282 |
|
283 TInt id_0 = 0; |
|
284 TInt id_1 = 0; |
|
285 TInt id_2 = 0; |
|
286 TInt id_3 = 0; |
|
287 |
|
288 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
289 CleanupStack::PushL( ack_0 ); |
|
290 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
291 CleanupStack::PushL( ack_1 ); |
|
292 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
293 CleanupStack::PushL( ack_2 ); |
|
294 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
295 CleanupStack::PushL( ack_3 ); |
|
296 |
|
297 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
298 |
|
299 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
300 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 5 ); |
|
301 CleanupStack::PushL( pauseStopper ); |
|
302 |
|
303 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
304 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
305 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
306 ss->Start(*startupProperties_0, process_3, ack_3->iStatus, id_3); |
|
307 |
|
308 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
309 //Process are started using Wait for start execution behaviour, |
|
310 //Start method always sets TRequestStatus to KRequestPending. |
|
311 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
312 { |
|
313 CActiveScheduler::Start(); |
|
314 |
|
315 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
316 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrTimedOut, KErrTimedOut, KErrTimedOut, KErrTimedOut ); |
|
317 |
|
318 TEST( ack_0->iStatus == KErrTimedOut ); |
|
319 TEST( ack_1->iStatus == KErrTimedOut ); |
|
320 TEST( ack_2->iStatus == KErrTimedOut ); |
|
321 TEST( ack_3->iStatus == KErrTimedOut ); |
|
322 } |
|
323 |
|
324 CleanupStack::PopAndDestroy( 11, startupProperties_0 ); |
|
325 |
|
326 TEST( 0 == FindAndKill(KTestAppNoRv) ); |
|
327 } |
|
328 |
|
329 |
|
330 /** |
|
331 This test starts three instances of ssmtestappgood.exe and one of ssmtestapprvafterretry.exe.The latter |
|
332 fails to rv 1 + the number of retries specified in the dat file (written here and deleted by the app) |
|
333 Rv is eventually successful |
|
334 */ |
|
335 void CSsTestStepAppStartMultiple::DoTestMultiAppIncludingRetryAsyncL() |
|
336 { |
|
337 INFO_PRINTF1( _L("\n\n Performing Multiple App-Start Async test---Inc one Retry") ); |
|
338 |
|
339 // |
|
340 // Write the retry number to a file to be read, updated |
|
341 // and eventually deleted by the test-app. |
|
342 RFs fs; |
|
343 CleanupClosePushL( fs ); |
|
344 |
|
345 RFileWriteStream writeStream; |
|
346 CleanupClosePushL( writeStream ); |
|
347 |
|
348 User::LeaveIfError(fs.Connect()); |
|
349 User::LeaveIfError(writeStream.Replace(fs, KDontRvCountFile, EFileWrite)); |
|
350 |
|
351 writeStream.WriteInt8L( KDontRvCount ); // KDontRvCount is declared in ssmtestapprvafterretry.h |
|
352 writeStream.CommitL(); |
|
353 |
|
354 CleanupStack::PopAndDestroy( 2, &fs ); |
|
355 // |
|
356 |
|
357 |
|
358 |
|
359 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
360 CleanupStack::PushL( startupProperties_0 ); |
|
361 |
|
362 // Timeout is specified, therefore there are instances of CTimeoutWaiter constructed. |
|
363 startupProperties_0->SetFileParamsL( KTestAppGood, KNullDesC ); |
|
364 startupProperties_0->SetCommandTypeL( ESsmCmdStartApp ); |
|
365 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
366 startupProperties_0->SetRetries( KTestMultiRetries ); |
|
367 startupProperties_0->SetTimeout( KSsTestAppStartTimeout ); |
|
368 |
|
369 CSsmStartupProperties* startupProperties_1 = CSsmStartupProperties::NewL(); |
|
370 CleanupStack::PushL( startupProperties_1 ); |
|
371 // The app that rv's after some retries (specified in c:\dontrvcount.dat |
|
372 startupProperties_1->SetFileParamsL( KTestAppRvAfterRetry, KNullDesC ); |
|
373 startupProperties_1->SetCommandTypeL( ESsmCmdStartApp ); |
|
374 startupProperties_1->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
375 startupProperties_1->SetRetries( KTestMultiRetries ); |
|
376 // Each retry in the test app takes 2ms, so delay for 5 retries is given as 18ms. |
|
377 startupProperties_1->SetTimeout( KSsTestAppStartTimeout * 6); //18000ms because KTestAppRvAfterRetry takes 2ms delay for each retry |
|
378 |
|
379 RProcess process_0; |
|
380 CleanupClosePushL( process_0 ); |
|
381 RProcess process_1; |
|
382 CleanupClosePushL( process_1 ); |
|
383 RProcess process_2; |
|
384 CleanupClosePushL( process_2 ); |
|
385 RProcess process_3; |
|
386 CleanupClosePushL( process_3 ); |
|
387 |
|
388 TInt id_0 = 0; |
|
389 TInt id_1 = 0; |
|
390 TInt id_2 = 0; |
|
391 TInt id_3 = 0; |
|
392 |
|
393 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
394 CleanupStack::PushL( ack_0 ); |
|
395 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
396 CleanupStack::PushL( ack_1 ); |
|
397 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
398 CleanupStack::PushL( ack_2 ); |
|
399 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
400 CleanupStack::PushL( ack_3 ); |
|
401 |
|
402 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
403 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
404 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 10 ); |
|
405 CleanupStack::PushL( pauseStopper ); |
|
406 |
|
407 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
408 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
409 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
410 ss->Start(*startupProperties_1, process_3, ack_3->iStatus, id_3); // The problematic app. Starts after the retries-count file is depleted |
|
411 |
|
412 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
413 //Process are started using Wait for start execution behaviour, |
|
414 //Start method always sets TRequestStatus to KRequestPending. |
|
415 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
416 { |
|
417 CActiveScheduler::Start(); |
|
418 |
|
419 TBuf<KMaxFileName> buf( process_0.FileName() ); |
|
420 INFO_PRINTF2( _L("process_0 filename %S"), &buf ); |
|
421 |
|
422 buf.Copy( process_1.FileName() ); |
|
423 INFO_PRINTF2( _L("process_1 filename %S"), &buf ); |
|
424 |
|
425 buf.Copy( process_2.FileName() ); |
|
426 INFO_PRINTF2( _L("process_2 filename %S"), &buf ); |
|
427 |
|
428 buf.Copy( process_3.FileName() ); |
|
429 INFO_PRINTF2( _L("process_3 filename %S"), &buf ); |
|
430 |
|
431 |
|
432 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
433 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrNone, KErrNone, KErrNone, KErrNone ); |
|
434 |
|
435 TEST( ack_0->iStatus == KErrNone ); |
|
436 TEST( ack_1->iStatus == KErrNone ); |
|
437 TEST( ack_2->iStatus == KErrNone ); |
|
438 TEST( ack_3->iStatus == KErrNone ); |
|
439 } |
|
440 |
|
441 CleanupStack::PopAndDestroy( 12, startupProperties_0 ); |
|
442 |
|
443 TEST( 1 == FindAndKill(KTestAppRvAfterRetry) ); |
|
444 TEST( 3 == FindAndKill(KTestAppGood) ); |
|
445 } |
|
446 |
|
447 |
|
448 |
|
449 |
|
450 // |
|
451 // START AS PROCESSES |
|
452 // |
|
453 |
|
454 /** |
|
455 Concurrently starts four instances of ssmtestappgood.exe as processes |
|
456 */ |
|
457 void CSsTestStepAppStartMultiple::DoTestMultiProcAsyncL() |
|
458 { |
|
459 |
|
460 INFO_PRINTF1( _L("\n\n Performing Multiple Process-Start Async test---no timeout") ); |
|
461 |
|
462 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
463 CleanupStack::PushL( startupProperties_0 ); |
|
464 |
|
465 // Slightly cheeky. Use the same startup properties for each call |
|
466 // No timeout specified, therefore there is no instance of CTimeoutWaiter constructed. |
|
467 startupProperties_0->SetFileParamsL( KTestAppGood, KNullDesC ); |
|
468 startupProperties_0->SetCommandTypeL( ESsmCmdStartProcess ); |
|
469 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
470 |
|
471 RProcess process_0; |
|
472 CleanupClosePushL( process_0 ); |
|
473 RProcess process_1; |
|
474 CleanupClosePushL( process_1 ); |
|
475 RProcess process_2; |
|
476 CleanupClosePushL( process_2 ); |
|
477 RProcess process_3; |
|
478 CleanupClosePushL( process_3 ); |
|
479 |
|
480 TInt id_0 = 0; |
|
481 TInt id_1 = 0; |
|
482 TInt id_2 = 0; |
|
483 TInt id_3 = 0; |
|
484 |
|
485 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
486 CleanupStack::PushL( ack_0 ); |
|
487 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
488 CleanupStack::PushL( ack_1 ); |
|
489 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
490 CleanupStack::PushL( ack_2 ); |
|
491 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
492 CleanupStack::PushL( ack_3 ); |
|
493 |
|
494 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
495 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
496 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 2 ); |
|
497 CleanupStack::PushL( pauseStopper ); |
|
498 |
|
499 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
500 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
501 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
502 ss->Start(*startupProperties_0, process_3, ack_3->iStatus, id_3); |
|
503 |
|
504 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
505 //Process are started using Wait for start execution behaviour, |
|
506 //Start method always sets TRequestStatus to KRequestPending. |
|
507 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
508 { |
|
509 CActiveScheduler::Start(); |
|
510 |
|
511 TBuf<KMaxFileName> buf( process_0.FileName() ); |
|
512 INFO_PRINTF2( _L("process_0 filename %S"), &buf ); |
|
513 |
|
514 buf.Copy( process_1.FileName() ); |
|
515 INFO_PRINTF2( _L("process_1 filename %S"), &buf ); |
|
516 |
|
517 buf.Copy( process_2.FileName() ); |
|
518 INFO_PRINTF2( _L("process_2 filename %S"), &buf ); |
|
519 |
|
520 buf.Copy( process_3.FileName() ); |
|
521 INFO_PRINTF2( _L("process_3 filename %S"), &buf ); |
|
522 |
|
523 |
|
524 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
525 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrNone, KErrNone, KErrNone, KErrNone ); |
|
526 |
|
527 TEST( ack_0->iStatus == KErrNone ); |
|
528 TEST( ack_1->iStatus == KErrNone ); |
|
529 TEST( ack_2->iStatus == KErrNone ); |
|
530 TEST( ack_3->iStatus == KErrNone ); |
|
531 } |
|
532 |
|
533 CleanupStack::PopAndDestroy( 11, startupProperties_0 ); |
|
534 |
|
535 TEST( 4 == FindAndKill(KTestAppGood) ); |
|
536 } |
|
537 |
|
538 |
|
539 |
|
540 /** |
|
541 Concurrently starts four instances of ssmtestappgood.exe as processes |
|
542 A timeout value is specified which ensures that intances of CTimeoutWaiter are created |
|
543 */ |
|
544 void CSsTestStepAppStartMultiple::DoTestMultiProcWithTimeoutAsyncL() |
|
545 { |
|
546 |
|
547 INFO_PRINTF1( _L("\n\n Performing Multiple Process-Start Async test---*with* timeout") ); |
|
548 |
|
549 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
550 CleanupStack::PushL( startupProperties_0 ); |
|
551 |
|
552 // Slightly cheeky. Use the same startup properties for each call |
|
553 // Timeout is specified, therefore there are instances of CTimeoutWaiter constructed. |
|
554 startupProperties_0->SetFileParamsL( KTestAppGood, KNullDesC ); |
|
555 startupProperties_0->SetCommandTypeL( ESsmCmdStartProcess ); |
|
556 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
557 startupProperties_0->SetTimeout( KSsTestAppStartTimeout ); |
|
558 |
|
559 RProcess process_0; |
|
560 CleanupClosePushL( process_0 ); |
|
561 RProcess process_1; |
|
562 CleanupClosePushL( process_1 ); |
|
563 RProcess process_2; |
|
564 CleanupClosePushL( process_2 ); |
|
565 RProcess process_3; |
|
566 CleanupClosePushL( process_3 ); |
|
567 |
|
568 TInt id_0 = 0; |
|
569 TInt id_1 = 0; |
|
570 TInt id_2 = 0; |
|
571 TInt id_3 = 0; |
|
572 |
|
573 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
574 CleanupStack::PushL( ack_0 ); |
|
575 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
576 CleanupStack::PushL( ack_1 ); |
|
577 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
578 CleanupStack::PushL( ack_2 ); |
|
579 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
580 CleanupStack::PushL( ack_3 ); |
|
581 |
|
582 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
583 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
584 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 5 ); |
|
585 CleanupStack::PushL( pauseStopper ); |
|
586 |
|
587 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
588 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
589 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
590 ss->Start(*startupProperties_0, process_3, ack_3->iStatus, id_3); |
|
591 |
|
592 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
593 //Process are started using Wait for start execution behaviour, |
|
594 //Start method always sets TRequestStatus to KRequestPending. |
|
595 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
596 { |
|
597 CActiveScheduler::Start(); |
|
598 |
|
599 TBuf<KMaxFileName> buf( process_0.FileName() ); |
|
600 INFO_PRINTF2( _L("process_0 filename %S"), &buf ); |
|
601 |
|
602 buf.Copy( process_1.FileName() ); |
|
603 INFO_PRINTF2( _L("process_1 filename %S"), &buf ); |
|
604 |
|
605 buf.Copy( process_2.FileName() ); |
|
606 INFO_PRINTF2( _L("process_2 filename %S"), &buf ); |
|
607 |
|
608 buf.Copy( process_3.FileName() ); |
|
609 INFO_PRINTF2( _L("process_3 filename %S"), &buf ); |
|
610 |
|
611 |
|
612 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
613 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrNone, KErrNone, KErrNone, KErrNone ); |
|
614 |
|
615 TEST( ack_0->iStatus == KErrNone ); |
|
616 TEST( ack_1->iStatus == KErrNone ); |
|
617 TEST( ack_2->iStatus == KErrNone ); |
|
618 TEST( ack_3->iStatus == KErrNone ); |
|
619 } |
|
620 |
|
621 CleanupStack::PopAndDestroy( 11, startupProperties_0 ); |
|
622 |
|
623 TEST( 4 == FindAndKill(KTestAppGood) ); |
|
624 } |
|
625 |
|
626 |
|
627 |
|
628 /** |
|
629 Concurrently starts four instances of ssmtestappnorv.exe as processes |
|
630 All of these timeout (naturalment) |
|
631 */ |
|
632 void CSsTestStepAppStartMultiple::DoTestMultiProcAllTimeoutAsyncL() |
|
633 { |
|
634 |
|
635 INFO_PRINTF1( _L("\n\n Performing Multiple App-as-Process-Start Async test---ALL timeout") ); |
|
636 |
|
637 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
638 CleanupStack::PushL( startupProperties_0 ); |
|
639 |
|
640 // Slightly cheeky. Use the same startup properties for each call |
|
641 startupProperties_0->SetFileParamsL( KTestAppNoRv, KNullDesC ); |
|
642 startupProperties_0->SetCommandTypeL( ESsmCmdStartProcess ); |
|
643 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
644 startupProperties_0->SetTimeout( KInduceTimeoutFailWaitTime ); |
|
645 |
|
646 |
|
647 RProcess process_0; |
|
648 CleanupClosePushL( process_0 ); |
|
649 RProcess process_1; |
|
650 CleanupClosePushL( process_1 ); |
|
651 RProcess process_2; |
|
652 CleanupClosePushL( process_2 ); |
|
653 RProcess process_3; |
|
654 CleanupClosePushL( process_3 ); |
|
655 |
|
656 TInt id_0 = 0; |
|
657 TInt id_1 = 0; |
|
658 TInt id_2 = 0; |
|
659 TInt id_3 = 0; |
|
660 |
|
661 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
662 CleanupStack::PushL( ack_0 ); |
|
663 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
664 CleanupStack::PushL( ack_1 ); |
|
665 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
666 CleanupStack::PushL( ack_2 ); |
|
667 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
668 CleanupStack::PushL( ack_3 ); |
|
669 |
|
670 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
671 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
672 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 5 ); |
|
673 CleanupStack::PushL( pauseStopper ); |
|
674 |
|
675 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
676 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
677 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
678 ss->Start(*startupProperties_0, process_3, ack_3->iStatus, id_3); |
|
679 |
|
680 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
681 //Process are started using Wait for start execution behaviour, |
|
682 //Start method always sets TRequestStatus to KRequestPending. |
|
683 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
684 { |
|
685 CActiveScheduler::Start(); |
|
686 |
|
687 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
688 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrTimedOut, KErrTimedOut, KErrTimedOut, KErrTimedOut ); |
|
689 |
|
690 TEST( ack_0->iStatus == KErrTimedOut ); |
|
691 TEST( ack_1->iStatus == KErrTimedOut ); |
|
692 TEST( ack_2->iStatus == KErrTimedOut ); |
|
693 TEST( ack_3->iStatus == KErrTimedOut ); |
|
694 } |
|
695 |
|
696 CleanupStack::PopAndDestroy( 11, startupProperties_0 ); |
|
697 |
|
698 TEST( 0 == FindAndKill(KTestAppNoRv) ); |
|
699 } |
|
700 |
|
701 |
|
702 |
|
703 /** |
|
704 This test starts three instances of ssmtestappgood.exe and one of ssmtestapprvafterretry.exe as processes.The latter |
|
705 fails to rv 1 + the number of retries specified in the dat file (written here and deleted by the app) |
|
706 Rv is eventually successful |
|
707 */ |
|
708 void CSsTestStepAppStartMultiple::DoTestMultiProcIncludingRetryAsyncL() |
|
709 { |
|
710 INFO_PRINTF1( _L("\n\n Performing Multiple Slow App-As-Process-Start Async test---ALL Retry") ); |
|
711 |
|
712 // |
|
713 // Write the retry number to a file to be read, updated |
|
714 // and eventually deleted by the test-app. |
|
715 RFs fs; |
|
716 CleanupClosePushL( fs ); |
|
717 |
|
718 RFileWriteStream writeStream; |
|
719 CleanupClosePushL( writeStream ); |
|
720 |
|
721 User::LeaveIfError(fs.Connect()); |
|
722 User::LeaveIfError(writeStream.Replace(fs, KDontRvCountFile, EFileWrite)); |
|
723 |
|
724 writeStream.WriteInt8L( KDontRvCount ); // KDontRvCount is declared in ssmtestapprvafterretry.h |
|
725 writeStream.CommitL(); |
|
726 |
|
727 CleanupStack::PopAndDestroy( 2, &fs ); |
|
728 // |
|
729 |
|
730 |
|
731 |
|
732 CSsmStartupProperties* startupProperties_0 = CSsmStartupProperties::NewL(); |
|
733 CleanupStack::PushL( startupProperties_0 ); |
|
734 |
|
735 // Timeout is specified, therefore there are instances of CTimeoutWaiter constructed. |
|
736 startupProperties_0->SetFileParamsL( KTestAppGood, KNullDesC ); |
|
737 startupProperties_0->SetCommandTypeL( ESsmCmdStartProcess ); |
|
738 startupProperties_0->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
739 startupProperties_0->SetRetries( KTestMultiRetries ); |
|
740 startupProperties_0->SetTimeout( KSsTestAppStartTimeout ); |
|
741 |
|
742 CSsmStartupProperties* startupProperties_1 = CSsmStartupProperties::NewL(); |
|
743 CleanupStack::PushL( startupProperties_1 ); |
|
744 // The app that rv's after some retries (specified in c:\dontrvcount.dat |
|
745 startupProperties_1->SetFileParamsL( KTestAppRvAfterRetry, KNullDesC ); |
|
746 startupProperties_1->SetCommandTypeL( ESsmCmdStartProcess ); |
|
747 startupProperties_1->SetExecutionBehaviour( ESsmWaitForSignal ); |
|
748 startupProperties_1->SetRetries( KTestMultiRetries ); |
|
749 startupProperties_1->SetTimeout( KSsTestAppStartTimeout * 6); //18000ms because KTestAppRvAfterRetry takes 2ms delay for each retry |
|
750 |
|
751 RProcess process_0; |
|
752 CleanupClosePushL( process_0 ); |
|
753 RProcess process_1; |
|
754 CleanupClosePushL( process_1 ); |
|
755 RProcess process_2; |
|
756 CleanupClosePushL( process_2 ); |
|
757 RProcess process_3; |
|
758 CleanupClosePushL( process_3 ); |
|
759 |
|
760 TInt id_0 = 0; |
|
761 TInt id_1 = 0; |
|
762 TInt id_2 = 0; |
|
763 TInt id_3 = 0; |
|
764 |
|
765 CStartAcknowledge* ack_0 = new(ELeave) CStartAcknowledge( this ); |
|
766 CleanupStack::PushL( ack_0 ); |
|
767 CStartAcknowledge* ack_1 = new(ELeave) CStartAcknowledge( this ); |
|
768 CleanupStack::PushL( ack_1 ); |
|
769 CStartAcknowledge* ack_2 = new(ELeave) CStartAcknowledge( this ); |
|
770 CleanupStack::PushL( ack_2 ); |
|
771 CStartAcknowledge* ack_3 = new(ELeave) CStartAcknowledge( this ); |
|
772 CleanupStack::PushL( ack_3 ); |
|
773 |
|
774 CSsmStartSafe* ss = CSsmStartSafe::NewLC(); |
|
775 // Use this timeout AO. Therefore not making assumptions about the order of completions. |
|
776 CAsPauseStopper* pauseStopper = new(ELeave) CAsPauseStopper( KSsAsStopperNominalTimeout * 10 ); |
|
777 CleanupStack::PushL( pauseStopper ); |
|
778 |
|
779 ss->Start(*startupProperties_0, process_0, ack_0->iStatus, id_0); |
|
780 ss->Start(*startupProperties_0, process_1, ack_1->iStatus, id_1); |
|
781 ss->Start(*startupProperties_0, process_2, ack_2->iStatus, id_2); |
|
782 ss->Start(*startupProperties_1, process_3, ack_3->iStatus, id_3); // The problematic app. Starts after the retries-count file is depleted |
|
783 |
|
784 INFO_PRINTF5( _L("id_0 to id_3 have the values %d %d %d %d "), id_0, id_1, id_2, id_3 ); |
|
785 //Process are started using Wait for start execution behaviour, |
|
786 //Start method always sets TRequestStatus to KRequestPending. |
|
787 if( (KRequestPending == ack_0->iStatus.Int()) && (KRequestPending == ack_1->iStatus.Int()) && (KRequestPending == ack_2->iStatus.Int()) && (KRequestPending == ack_3->iStatus.Int()) ) |
|
788 { |
|
789 CActiveScheduler::Start(); |
|
790 |
|
791 TBuf<KMaxFileName> buf( process_0.FileName() ); |
|
792 INFO_PRINTF2( _L("process_0 filename %S"), &buf ); |
|
793 |
|
794 buf.Copy( process_1.FileName() ); |
|
795 INFO_PRINTF2( _L("process_1 filename %S"), &buf ); |
|
796 |
|
797 buf.Copy( process_2.FileName() ); |
|
798 INFO_PRINTF2( _L("process_2 filename %S"), &buf ); |
|
799 |
|
800 buf.Copy( process_3.FileName() ); |
|
801 INFO_PRINTF2( _L("process_3 filename %S"), &buf ); |
|
802 |
|
803 |
|
804 INFO_PRINTF5( _L("Test apps rv'd with the values %d %d %d %d "), ack_0->iStatus.Int(), ack_1->iStatus.Int(), ack_2->iStatus.Int(), ack_3->iStatus.Int() ); |
|
805 INFO_PRINTF5( _L("Anticipated values were %d %d %d %d "), KErrNone, KErrNone, KErrNone, KErrNone ); |
|
806 |
|
807 TEST( ack_0->iStatus == KErrNone ); |
|
808 TEST( ack_1->iStatus == KErrNone ); |
|
809 TEST( ack_2->iStatus == KErrNone ); |
|
810 TEST( ack_3->iStatus == KErrNone ); |
|
811 } |
|
812 |
|
813 CleanupStack::PopAndDestroy( 12, startupProperties_0 ); |
|
814 |
|
815 TEST( 1 == FindAndKill(KTestAppRvAfterRetry) ); |
|
816 TEST( 3 == FindAndKill(KTestAppGood) ); |
|
817 } |
|
818 |
|
819 |
|
820 |
|
821 TVerdict CSsTestStepAppStartMultiple::doTestStepPreambleL() |
|
822 { |
|
823 iActiveScheduler = new(ELeave) CActiveScheduler; |
|
824 CActiveScheduler::Install( iActiveScheduler ); |
|
825 |
|
826 return CTestStep::doTestStepPreambleL(); |
|
827 } |
|
828 |
|
829 |
|
830 |
|
831 /** */ |
|
832 TVerdict CSsTestStepAppStartMultiple::doTestStepPostambleL() |
|
833 { |
|
834 return CTestStep::doTestStepPostambleL(); |
|
835 } |
|
836 |
|
837 |
|
838 /** |
|
839 From MSsTestAsyncNotifier |
|
840 */ |
|
841 void CSsTestStepAppStartMultiple::SsTestNotify( TInt aNotify ) |
|
842 { |
|
843 // This method is called if CSsmStartSafe's start method leaves in void CTestAndStopper::DoStartsL(). |
|
844 INFO_PRINTF2( _L("*** App rv'd with %d"), aNotify ); |
|
845 } |
|
846 |
|
847 |
|
848 |
|
849 CSsTestStepAppStartMultiple::CSsTestStepAppStartMultiple() |
|
850 { |
|
851 SetTestStepName( KCTestCaseAppStartMultiple ); |
|
852 } |
|
853 |
|
854 |
|
855 |
|
856 CSsTestStepAppStartMultiple::~CSsTestStepAppStartMultiple() |
|
857 { |
|
858 delete iActiveScheduler; |
|
859 } |
|
860 |