Update contrib.
1 // Copyright (c) 1998-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\misc\t_proc3.cpp
20 #include "../misc/prbs.h"
22 _LIT(KSecondProcessName,"T_PROC3A");
24 RTest test(_L("T_PROC3"));
26 GLDEF_C TInt E32Main()
29 test.Start(_L("Testing thread create/process kill"));
41 TInt r=p.Create(KSecondProcessName,buf);
44 test.Printf(_L("Process create failed, code %d\n"),r);
50 test(s==KRequestPending);
53 User::WaitForRequest(s);
54 if (p.ExitType()!=EExitKill || (TUint)p.ExitReason()!=x)
56 TExitCategoryName aExitCategory = p.ExitCategory();
57 test.Printf(_L("Exit %d,%d,%S\n"),p.ExitType(),p.ExitReason(),&aExitCategory);
58 test.Printf(_L("Should be 0,%d,Kill\n"),x);
63 test.Printf(_L("%d\n"),n);