Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/test/common.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 22 08:24:35 2004 UTC (19 years, 4 months ago) by youi
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, demo20050128, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
File MIME type: text/x-c++src
initial version

1 /*
2 * テストが良く利用する関数を定義
3 *
4 * $Revision$
5 * $Log$
6 *
7 */
8 #include <stdio.h>
9
10 #include "common.h"
11
12 /**
13 *
14 * テスト結果に応じてをok/NGを出力する
15 *
16 * @param cond テストの成否(true=成功)
17 * @param msg テストに関する文字列(テスト項目名など)
18 * @return cond引数の値
19 *
20 */
21 bool test( bool cond, const char* msg )
22 {
23 if( cond ){
24 printf( "%s .... ok\n", msg );
25 }else{
26 printf( "%s .... NG\n", msg );
27 }
28
29 return cond;
30 }
31
32

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26