kerneltest/e32test/mmu/t_sharedchunk.cpp
changeset 293 0659d0e1a03c
parent 31 56f325a607ea
equal deleted inserted replaced
291:206a6eaaeb71 293:0659d0e1a03c
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-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".
  1318 	}
  1318 	}
  1319 
  1319 
  1320 
  1320 
  1321 TInt E32Main()
  1321 TInt E32Main()
  1322 	{
  1322 	{
       
  1323 	COMPLETE_POST_BOOT_SYSTEM_TASKS();
  1323 	// Running as slave?
  1324 	// Running as slave?
  1324 	TInt slaveCommand;
  1325 	TInt slaveCommand;
  1325 	if(User::GetTIntParameter(1,slaveCommand)==KErrNone)
  1326 	if(User::GetTIntParameter(1,slaveCommand)==KErrNone)
  1326 		return SlaveCommand((TSlaveCommand)slaveCommand);
  1327 		return SlaveCommand((TSlaveCommand)slaveCommand);
  1327 
  1328 
  1328 // Turn off lazy dll unloading
       
  1329 	RLoader l;
       
  1330 	test(l.Connect()==KErrNone);
       
  1331 	test(l.CancelLazyDllUnload()==KErrNone);
       
  1332 	l.Close();
       
  1333 
       
  1334 	test.Title();
  1329 	test.Title();
  1335 
  1330 
  1336 	MemModelAttributes=UserSvr::HalFunction(EHalGroupKernel, EKernelHalMemModelInfo, NULL, NULL);
  1331 	MemModelAttributes=UserSvr::HalFunction(EHalGroupKernel, EKernelHalMemModelInfo, NULL, NULL);
  1337 	TUint mm=MemModelAttributes&EMemModelTypeMask;
  1332 	TUint mm=MemModelAttributes&EMemModelTypeMask;
  1338 #ifdef __T_SHAREDCHUNKF__
  1333 #ifdef __T_SHAREDCHUNKF__