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
This commit is contained in:
ailu 2016-09-06 21:53:47 +02:00
parent cfd3212a4a
commit 1e28ad1277

View file

@ -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 },