1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/dll/t_tstart.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,54 @@
1.4 +// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32test\dll\t_tstart.cpp
1.18 +// Overview:
1.19 +// Check DLLs are started in correct order
1.20 +// API Information:
1.21 +// N/A
1.22 +// Details:
1.23 +// - Test and verify that DLLs are started in correct order
1.24 +// Platforms/Drives/Compatibility:
1.25 +// All.
1.26 +// Assumptions/Requirement/Pre-requisites:
1.27 +// Failures and causes:
1.28 +// Base Port information:
1.29 +//
1.30 +//
1.31 +
1.32 +#include <e32test.h>
1.33 +
1.34 +LOCAL_D RTest test(_L("T_TSTART"));
1.35 +
1.36 +IMPORT_C TUint32 GetStartTime1();
1.37 +IMPORT_C TUint32 GetStartTime3();
1.38 +IMPORT_C TUint32 GetStartTime2();
1.39 +
1.40 +GLDEF_C TInt E32Main()
1.41 + {
1.42 + test.Title();
1.43 +//
1.44 + test.Start(_L("Checking Dlls started in correct order"));
1.45 +
1.46 + TUint32 start1=GetStartTime1();
1.47 + TUint32 start2=GetStartTime2();
1.48 + TUint32 start3=GetStartTime3();
1.49 + test.Printf(_L("Start tickcount for Dlls T_START1, T_START2 and T_START3 are:\n"));
1.50 + test.Printf(_L(" %08x %08x %08x\n"), start1,start2, start3);
1.51 + test(start2>start1);
1.52 + test(start3>start2);
1.53 +
1.54 + test.End();
1.55 + return 0;
1.56 + }
1.57 +