From 7a50361208ad0ed5436a5f8a9e32cfa6675e722e Mon Sep 17 00:00:00 2001 From: amancini-N Date: Fri, 23 Aug 2024 15:15:47 +0000 Subject: [PATCH] Fix "./onnxruntime_test_all --help" segfault --- onnxruntime/test/unittest_main/test_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/test/unittest_main/test_main.cc b/onnxruntime/test/unittest_main/test_main.cc index b558a7f00f7bc..bee562c3f42e4 100644 --- a/onnxruntime/test/unittest_main/test_main.cc +++ b/onnxruntime/test/unittest_main/test_main.cc @@ -92,8 +92,8 @@ int TEST_MAIN(int argc, char** argv) { int status = 0; ORT_TRY { - ortenv_setup(); ::testing::InitGoogleTest(&argc, argv); + ortenv_setup(); status = RUN_ALL_TESTS(); }