Signed-off-by: Martin Erik Werner <martin.wer...@aacmicrotec.com> --- rtems/gtest-main.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/rtems/gtest-main.h b/rtems/gtest-main.h index 81ec91e..797d12e 100644 --- a/rtems/gtest-main.h +++ b/rtems/gtest-main.h @@ -39,8 +39,9 @@ extern "C" { void *POSIX_Init(void *) { - int argc = 0; - char **argv = NULL; + /* gtest requires nonzero arg count */ + int argc = 1; + char *argv[] = { "dummy" }; testing::InitGoogleTest(&argc, argv); int exit_status = RUN_ALL_TESTS(); -- 2.11.0 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel