From 495f159a56cee596cc1211698e3b27cdb0349845 Mon Sep 17 00:00:00 2001 From: Brian Martin <42186431+martinb35@users.noreply.github.com> Date: Tue, 26 Nov 2019 09:43:01 -0800 Subject: [PATCH] fix model load test. fi from master changed the constructor (#2483) --- onnxruntime/test/ir/onnx_model_test.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/onnxruntime/test/ir/onnx_model_test.cc b/onnxruntime/test/ir/onnx_model_test.cc index 21184d1929..4fb0f11ed4 100644 --- a/onnxruntime/test/ir/onnx_model_test.cc +++ b/onnxruntime/test/ir/onnx_model_test.cc @@ -64,11 +64,12 @@ TEST(ONNXModelsTest, non_existing_model) { } TEST(ONNXModelsTest, future_opset) { - // NOTE: this requires the current directory to be where onnxruntime_ir_UT.exe is located - std::shared_ptr model; - common::Status st = Model::Load("./testdata/add_opset_314159.onnx", model); - ASSERT_FALSE(st.IsOK()); - ASSERT_EQ(st.Code(), common::INVALID_GRAPH); + // NOTE: this requires the current directory to be where onnxruntime_ir_UT.exe is located + std::shared_ptr model; + common::Status st = Model::Load(ORT_TSTR("./testdata/add_opset_314159.onnx"), model, nullptr, + DefaultLoggingManager().DefaultLogger()); + ASSERT_FALSE(st.IsOK()); + ASSERT_EQ(st.Code(), common::INVALID_GRAPH); } #ifdef ORT_RUN_EXTERNAL_ONNX_TESTS