fix model load test. fi from master changed the constructor (#2483)

This commit is contained in:
Brian Martin 2019-11-26 09:43:01 -08:00 committed by GitHub
parent 8dfad9e3b7
commit 495f159a56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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> 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> 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