testoptions: fixed buffer access out of bounds issue. The ctor of options requires an array of at least two elements, but.
This commit is contained in:
parent
c529de6e07
commit
184db3900e
|
@ -55,7 +55,7 @@ private:
|
||||||
|
|
||||||
|
|
||||||
void no_test_method() const {
|
void no_test_method() const {
|
||||||
const char* argv[] = {"./test_runner"};
|
const char* argv[] = {"./test_runner", ""};
|
||||||
options args(sizeof argv / sizeof argv[0], argv);
|
options args(sizeof argv / sizeof argv[0], argv);
|
||||||
ASSERT_EQUALS("", args.which_test());
|
ASSERT_EQUALS("", args.which_test());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue