microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.77k stars 2.94k forks source link

Fix "./onnxruntime_test_all --help" segfault #22839

Open amancini-N opened 1 week ago

amancini-N commented 1 week ago

Description

Makes sure the GTest parameters are processed before ORT Env is set up in unittests binary. In this way, binary won't segfault on exit if --help arg is used

Motivation and Context

Fixes #22838