diff options
-rw-r--r-- | rtems/gtest-main.h | 5 |
1 files 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(); |