Update contrib.
1 // Copyright (c) 2005-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\emul\t_jit.cpp
16 // Test that User::JustInTime() initially corresponds to the JustInTime setting
18 // This is a manual test, and must be run by hand with an argument of 0 or 1 to
19 // specify the expected result, eg:
21 // t_jit -DJustInTime=none -- 0
25 // Test User::JustInTime corresponds to command line argument.
26 // Platforms/Drives/Compatibility:
28 // Assumptions/Requirement/Pre-requisites:
29 // Failures and causes:
30 // Base Port information:
36 RTest test(_L("t_jit"));
38 GLDEF_C TInt E32Main()
41 test.Start(_L("Just in time"));
43 test(User::CommandLineLength() == 1);
45 User::CommandLine(cmd);
48 test(lex.Val(val) == KErrNone);
49 test (val == 0 || val == 1);
50 TBool expected = val == 1;
52 test(User::JustInTime() == expected);