/* $Id: wrap_str.c 710 2006-07-27 19:02:06Z bruce $ */ #include "msg.h" #include "wrap.h" void wrap_str(int result) { if (!result) die_oom(wrap_exit); } #ifdef SELFTEST_MAIN #include "selftest.c" const char program[] = "testprog"; const int msg_show_pid = 0; MAIN { wrap_exit = 0; wrap_str(1); obuf_putsflush(&outbuf, "worked\n"); wrap_str(0); } #endif #ifdef SELFTEST_EXP worked testprog: Fatal: Out of memory #endif