From 1e28ad127783337b6210fd6a699193df27d40f9c Mon Sep 17 00:00:00 2001 From: ailu Date: Tue, 6 Sep 2016 21:53:47 +0200 Subject: [PATCH] fix: set criterion_options.debug to CR_DBG_NATIVE criterion_options.debug was not set if no argument was given. According to the docs the native debugger should used, so this member has to be set to CR_DBG_NATIVE --- src/entry/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entry/params.c b/src/entry/params.c index c6f38ba..9927440 100644 --- a/src/entry/params.c +++ b/src/entry/params.c @@ -167,7 +167,7 @@ static int parse_dbg_transport(const char *arg) static int parse_dbg(const char *arg) { if (!arg) - return CR_DBG_NATIVE; + return criterion_options.debug = CR_DBG_NATIVE; static struct { char *name; enum criterion_debugger dbg; } values[] = { { "gdb", CR_DBG_GDB },