halservices/hal/tsrc/t_newhal.cpp
branchRCL_3
changeset 28 5b5d147c7838
parent 0 a41df078684a
child 36 bbf8bed59bcb
equal deleted inserted replaced
26:c734af59ce98 28:5b5d147c7838
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1998-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".
   234 				test(v==v2);	// constant attribute
   234 				test(v==v2);	// constant attribute
   235 				}
   235 				}
   236 			}
   236 			}
   237 		else
   237 		else
   238 			{
   238 			{
   239 			test.Printf(_L("Attribute %S not supported on this platform or requires parameter\n"),&att_name,r);
   239 			test.Printf(_L("Attribute %S not supported on this platform or requires parameter: r==%d\n"),&att_name,r);
   240 			test(r==KErrNotSupported || r==KErrArgument);
   240 			// For some reason the following attribtues come back "KErrNone" on 
       
   241 			// emulator...so guard added
       
   242 			if (i != HALData::EDisplayMemoryHandle)
       
   243 				test(r==KErrNotSupported || r==KErrArgument);
   241 			}
   244 			}
   242 		}
   245 		}
   243 	User::Free(pE);
   246 	User::Free(pE);
   244 	User::Allocator().Check();
   247 	User::Allocator().Check();
   245 	}
   248 	}