1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
13 #include <IceUtil/Config.h>
21 inline testFailed(const char* expr
, const char* file
, unsigned int line
)
23 std::cout
<< "failed!" << std::endl
;
24 std::cout
<< file
<< ':' << line
<< ": assertion `" << expr
<< "' failed" << std::endl
;
28 #define test(ex) ((ex) ? ((void)0) : testFailed(#ex, __FILE__, __LINE__))