os/kernelhwsrv/baseapitest/basesvs/conformance/f32/fat32/inc/basetedefs.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
sl@0
    20
sl@0
    21
#ifndef BASETEDEFS_H
sl@0
    22
#define BASETEDEFS_H
sl@0
    23
sl@0
    24
#define DO_TEST(COND)     				CarryOutTest((COND),((TText8*)__FILE__), __LINE__)
sl@0
    25
#define DO_TEST2(PTR,COND)				(PTR)->CarryOutTest((COND),((TText8*)__FILE__), __LINE__)
sl@0
    26
#define DO_TEST3(THREAD,PTR,COND)		(PTR)->CarryOutTest((THREAD),(COND),((TText8*)__FILE__), __LINE__)
sl@0
    27
sl@0
    28
#define INFO_PRINTF8(p1, p2, p3, p4, p5, p6, p7, p8)	Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrInfo, (p1), (p2), (p3), (p4), (p5), (p6), (p7), (p8))
sl@0
    29
sl@0
    30
sl@0
    31
//define DO_TEST(COND, ERR_NUM)	if((COND)!=true){User::Panic(KBaseTestTAct,(ERR_NUM));}
sl@0
    32
sl@0
    33
#define DO_PRINTF1(PTEST,P1)						(PTEST)->INFO_PRINTF1((P1))
sl@0
    34
#define DO_PRINTF2(PTEST,P1,P2)						(PTEST)->INFO_PRINTF2((P1),(P2))
sl@0
    35
#define DO_PRINTF3(PTEST,P1,P2,P3)					(PTEST)->INFO_PRINTF3((P1),(P2),(P3))
sl@0
    36
#define DO_PRINTF4(PTEST,P1,P2,P3,P4)				(PTEST)->INFO_PRINTF4((P1),(P2),(P3),(P4))
sl@0
    37
#define DO_PRINTF5(PTEST,P1,P2,P3,P4,P5)			(PTEST)->INFO_PRINTF5((P1),(P2),(P3),(P4),(P5))
sl@0
    38
#define DO_PRINTF6(PTEST,P1,P2,P3,P4,P5,P6)			(PTEST)->INFO_PRINTF6((P1),(P2),(P3),(P4),(P5),(P6))
sl@0
    39
#define DO_PRINTF7(PTEST,P1,P2,P3,P4,P5,P6,P7)		(PTEST)->INFO_PRINTF7((P1),(P2),(P3),(P4),(P5),(P6),(P7))
sl@0
    40
#define DO_PRINTF8(PTEST,P1,P2,P3,P4,P5,P6,P7,P8)	(PTEST)->INFO_PRINTF8((P1),(P2),(P3),(P4),(P5),(P6),(P7),(P8))
sl@0
    41
sl@0
    42
#define DO_THREAD_PRINTF1(PTEST,P1)   \
sl@0
    43
					{\
sl@0
    44
						RCriticalSection * pSection = (PTEST)->ReturnCritical();\
sl@0
    45
						if (pSection) pSection->Wait();\
sl@0
    46
						(PTEST)->INFO_PRINTF1((P1));\
sl@0
    47
						if (pSection) pSection->Signal();\
sl@0
    48
					}
sl@0
    49
						
sl@0
    50
sl@0
    51
sl@0
    52
#endif