summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-03-09 15:47:59 +0200
committerMichael Widenius <monty@askmonty.org>2011-03-09 15:47:59 +0200
commit2fd0b7546a282540de4d7c08ccf1cc1b427044a0 (patch)
tree7d77d6f1073f8090f275b30cb3f10254497da243 /unittest
parentdc9706fc13d56cde0d33102a9fa2732f72edf5da (diff)
parent1e41824569fb3d26200b0c219edeadd48801f074 (diff)
downloadmariadb-git-2fd0b7546a282540de4d7c08ccf1cc1b427044a0.tar.gz
Merge with 5.2
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mytap/tap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c
index 550920d9d3e..1792c82519b 100644
--- a/unittest/mytap/tap.c
+++ b/unittest/mytap/tap.c
@@ -126,7 +126,7 @@ emit_endl()
static void
handle_core_signal(int signo)
{
- BAIL_OUT("Signal %d thrown", signo);
+ BAIL_OUT("Signal %d thrown\n", signo);
}
void
@@ -136,6 +136,8 @@ BAIL_OUT(char const *fmt, ...)
va_start(ap, fmt);
fprintf(tapout, "Bail out! ");
vfprintf(tapout, fmt, ap);
+ diag("%d tests planned, %d failed, %d was last executed",
+ g_test.plan, g_test.failed, g_test.last);
emit_endl();
va_end(ap);
exit(255);
@@ -159,6 +161,7 @@ typedef struct signal_entry {
} signal_entry;
static signal_entry install_signal[]= {
+ { SIGINT, handle_core_signal },
{ SIGQUIT, handle_core_signal },
{ SIGILL, handle_core_signal },
{ SIGABRT, handle_core_signal },