summaryrefslogtreecommitdiff
path: root/unittest/mytap/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/mytap/tap.c')
-rw-r--r--unittest/mytap/tap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c
index 2b728670cea..d3f5013b4c9 100644
--- a/unittest/mytap/tap.c
+++ b/unittest/mytap/tap.c
@@ -199,8 +199,8 @@ int exit_status() {
if (g_test.plan != g_test.last)
{
- diag("%d tests planned but only %d executed",
- g_test.plan, g_test.last);
+ diag("%d tests planned but%s %d executed",
+ g_test.plan, (g_test.plan > g_test.last ? " only" : ""), g_test.last);
return EXIT_FAILURE;
}