15 if (addseverity (MM_TEST
, "TEST") != MM_OK
)
17 puts ("addseverity failed");
21 if (fmtmsg (MM_PRINT
, "GLIBC:tst-fmtmsg", MM_HALT
, "halt",
22 "should print message for MM_HALT", "GLIBC:tst-fmtmsg:1")
26 if (fmtmsg (MM_PRINT
, "GLIBC:tst-fmtmsg", MM_ERROR
, "halt",
27 "should print message for MM_ERROR", "GLIBC:tst-fmtmsg:2")
31 if (fmtmsg (MM_PRINT
, "GLIBC:tst-fmtmsg", MM_WARNING
, "halt",
32 "should print message for MM_WARNING", "GLIBC:tst-fmtmsg:3")
36 if (fmtmsg (MM_PRINT
, "GLIBC:tst-fmtmsg", MM_INFO
, "halt",
37 "should print message for MM_INFO", "GLIBC:tst-fmtmsg:4")
41 if (fmtmsg (MM_PRINT
, "GLIBC:tst-fmtmsg", MM_NOSEV
, "halt",
42 "should print message for MM_NOSEV", "GLIBC:tst-fmtmsg:5")
46 if (fmtmsg (MM_PRINT
, "GLIBC:tst-fmtmsg", MM_TEST
, "halt",
47 "should print message for MM_TEST", "GLIBC:tst-fmtmsg:6")
51 if (addseverity (MM_TEST
, NULL
) != MM_OK
)
53 puts ("second addseverity failed");