2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
7 #define TST_FUNCTION_CALL(func) _TST_FUNCTION_CALL(func)
8 #define _TST_FUNCTION_CALL(func) tst ##_## func
17 #include "tst_types.h"
18 #include "tgn_locdef.h"
22 main (int argc
, char *argv
[])
27 debug
= argc
> 1 ? atoi (argv
[1]) : 0;
31 fprintf (stdout
, "\nTST_MBWC ===> %s ...\n", argv
[0]);
33 ret
= TST_FUNCTION_CALL (TST_FUNCTION
) (stdout
, debug
);
38 #define MAX_RESULT_REC 132
39 char result_rec
[MAX_RESULT_REC
];
43 result (FILE * fp
, char res
, const char *func
, const char *loc
, int rec_no
,
44 int seq_no
, int case_no
, const char *msg
)
47 || strlen (func
) + strlen (loc
) + strlen (msg
) + 32 > MAX_RESULT_REC
)
50 "Warning: result(): can't write the result: %s:%s:%d:%d:%s\n",
51 func
, loc
, rec_no
, case_no
, msg
);
55 sprintf (result_rec
, "%s:%s:%d:%d:%d:%c:%s\n", func
, loc
, rec_no
, seq_no
,
58 if (fputs (result_rec
, fp
) == EOF
)