refactor: make sure to use static args on ArgParsers::NameTest
This commit is contained in:
parent
ff1726677b
commit
7b866ec632
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ void ArgParserTests::generic_name()
|
|||
const char *kNameCmd[argc] = {"stub", "--name", "mock"};
|
||||
// Somehow cause a dump if not made here.
|
||||
ArgParser parser(nullptr);
|
||||
deskflow::ArgsBase base;
|
||||
static deskflow::ArgsBase base;
|
||||
|
||||
parser.setArgsBase(base);
|
||||
parser.parseGenericArgs(argc, kNameCmd, i);
|
||||
|
|
|
|||
Loading…
Reference in a new issue