Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
18 #ifndef __TEST_DECLS_H__
19 #define __TEST_DECLS_H__
24 inline void log_stat(const char* funcName, const char* fileName, int line, const char* expr, int status)
26 FILE* file = fopen("c:\\logs\\libstdcpp_runtime_tests.log", "a+");
27 fprintf(file, "%s %s %d %s ::",fileName, funcName, line, expr);
29 fprintf(file, "%s", "PASSED\n");
31 fprintf(file, "%s", "FAILED\n");
33 fprintf(file, "%s","IGNORED\n");
38 inline void log_success(const char* funcName, const char* fileName, int line, const char* expr)
40 log_stat(funcName, fileName, line, expr, 0);
43 inline void log_failure(const char* funcName, const char* fileName, int line, const char* expr)
45 log_stat(funcName, fileName, line, expr, 1);
48 #define CPP_TESTS_ASSERT_ALLWAYS(expr) ( (expr) ? log_success(__PRETTY_FUNCTION__, __FILE__,\
50 log_failure(__PRETTY_FUNCTION__, __FILE__, \
53 #endif //__TEST_DECLS_H__