javauis/coreui/tsrc/src/testutils.h
changeset 76 4ad59aaee882
equal deleted inserted replaced
69:773449708c84 76:4ad59aaee882
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Test util
       
    15 *
       
    16 */
       
    17 
       
    18 #include <sstream>
       
    19 
       
    20 #define CHECKWITHNOTE(check, note) \
       
    21 {\
       
    22     std::stringstream stream;\
       
    23     stream << note;\
       
    24     if (!(check))\
       
    25     {\
       
    26         ELOG1(EJavaRuntime, "TEST FAILURE: %s", stream.str().c_str());\
       
    27         FAIL(stream.str().c_str());\
       
    28     }\
       
    29     else\
       
    30     {\
       
    31         CHECK(true) /* Just to increase the check count*/ \
       
    32     }\
       
    33 }