From 31ce1d5cf92d8e44a4d21a303633e44c5bcf24a5 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sat, 22 Feb 2014 10:00:09 -0800 Subject: [PATCH] Silence and fixes --- src/greatest/greatest.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/greatest/greatest.h b/src/greatest/greatest.h index 200b93b1..7663a3f6 100644 --- a/src/greatest/greatest.h +++ b/src/greatest/greatest.h @@ -344,7 +344,9 @@ void GREATEST_SET_BREAKPOINT_CB(greatest_breakpoint_cb *cb, void *udata); #define GREATEST_SKIPm(MSG) \ do { \ - greatest_info.msg = strdup(MSG); \ + if (MSG) { \ + greatest_info.msg = strdup(MSG); \ + } \ return 1; \ } while (0) @@ -512,6 +514,7 @@ void greatest_do_skip(const char *name) { \ name, \ greatest_info.msg ? \ greatest_info.msg : "" ); \ + } else if (GREATEST_SILENT_SUCCESS()) { \ } else { \ fprintf(GREATEST_STDOUT, "s"); \ } \