mariadb/portability/tests/try-assert-zero.c
Leif Walsh 63b1969fbb [t:4814] merging cmake work to mainline
git-svn-id: file:///svn/toku/tokudb@43179 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:25 -04:00

16 lines
310 B
C

#include <stdio.h>
#include <toku_assert.h>
#include <stdlib.h>
#include <signal.h>
static __attribute__((__noreturn__)) void catch_abort (int sig __attribute__((__unused__))) {
exit(1);
}
int main(void) {
signal (SIGABRT, catch_abort);
int result = 42;
assert_zero(result);
return 0;
}