equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
482 GLDEF_C TInt E32Main() |
482 GLDEF_C TInt E32Main() |
483 // |
483 // |
484 // Test ROM shadowing |
484 // Test ROM shadowing |
485 // |
485 // |
486 { |
486 { |
|
487 COMPLETE_POST_BOOT_SYSTEM_TASKS(); |
487 test.Title(); |
488 test.Title(); |
488 |
489 |
489 if (!HaveMMU()) |
490 if (!HaveMMU()) |
490 { |
491 { |
491 test.Printf(_L("This test requires an MMU\n")); |
492 test.Printf(_L("This test requires an MMU\n")); |
492 return KErrNone; |
493 return KErrNone; |
493 } |
494 } |
494 #ifdef __WINS__ |
495 #ifdef __WINS__ |
495 test.Printf(_L("Test not valid in WINS\n")); |
496 test.Printf(_L("Test not valid in WINS\n")); |
496 #else |
497 #else |
497 // Turn off lazy dll unloading |
|
498 RLoader l; |
|
499 test_KErrNone(l.Connect()); |
|
500 test_KErrNone(l.CancelLazyDllUnload()); |
|
501 l.Close(); |
|
502 |
498 |
503 test.Start(_L("Testing ROM shadowing")); |
499 test.Start(_L("Testing ROM shadowing")); |
504 Initialise(); |
500 Initialise(); |
505 |
501 |
506 TestRomIsSectionMapped(); |
502 TestRomIsSectionMapped(); |