205 // Output a character every 16 iterations so test machines |
205 // Output a character every 16 iterations so test machines |
206 // don't time out. |
206 // don't time out. |
207 if ((fillValue & 0xf) == 1) |
207 if ((fillValue & 0xf) == 1) |
208 test.Printf(_L(".")); |
208 test.Printf(_L(".")); |
209 |
209 |
210 test.Printf(_L("Process ID %d start slave fill value %d\n"), aProcessId, fillValue); |
210 PRINTF(T_PRINTF(_L("Process ID %d start slave fill value %d\n"), aProcessId, fillValue)); |
211 RServer2 masterServer; |
211 RServer2 masterServer; |
212 r = masterServer.CreateGlobal(MasterServerName); |
212 r = masterServer.CreateGlobal(MasterServerName); |
213 test_KErrNone(r); |
213 test_KErrNone(r); |
214 RMessage2 masterMessage; |
214 RMessage2 masterMessage; |
215 |
215 |
267 {// Alias has read the chunk and completed. |
267 {// Alias has read the chunk and completed. |
268 test_Equal(ESlaveDisconnect, func); |
268 test_Equal(ESlaveDisconnect, func); |
269 } |
269 } |
270 } |
270 } |
271 |
271 |
272 test.Printf(_L("Process ID %d Wait for alias to complete\n"), aProcessId); |
272 PRINTF(T_PRINTF(_L("Process ID %d Wait for alias to complete\n"), aProcessId)); |
273 masterMessage.Complete(KErrNone); |
273 masterMessage.Complete(KErrNone); |
274 User::WaitForRequest(threadStatus); |
274 User::WaitForRequest(threadStatus); |
275 TInt statusInt = threadStatus.Int(); |
275 TInt statusInt = threadStatus.Int(); |
276 test_Value( statusInt, |
276 test_Value( statusInt, |
277 statusInt == KErrNone || |
277 statusInt == KErrNone || |
278 statusInt == KErrBadDescriptor || |
278 statusInt == KErrBadDescriptor || |
279 statusInt == KErrDied); |
279 statusInt == KErrDied); |
280 test_Equal(EExitKill, readThread.ExitType()); |
280 test_Equal(EExitKill, readThread.ExitType()); |
281 readThread.Close(); |
281 readThread.Close(); |
282 |
282 |
283 test.Printf(_L("Process ID %d Wait for slave to complete\n"), aProcessId); |
283 PRINTF(T_PRINTF(_L("Process ID %d Wait for slave to complete\n"), aProcessId)); |
284 User::WaitForRequest(slaveStatus); |
284 User::WaitForRequest(slaveStatus); |
285 test_Equal(EExitKill, slaveProcess.ExitType()); |
285 test_Equal(EExitKill, slaveProcess.ExitType()); |
286 test_Equal(KErrNone, slaveProcess.ExitReason()); |
286 test_Equal(KErrNone, slaveProcess.ExitReason()); |
287 slaveProcess.Close(); |
287 slaveProcess.Close(); |
288 masterServer.Close(); |
288 masterServer.Close(); |