From 9ad95bf068e4e25bec79c8715440d9bed909b3c8 Mon Sep 17 00:00:00 2001 From: Numfor Tiapo Date: Wed, 2 Mar 2022 10:28:58 -0800 Subject: [PATCH] Skip SetName test on inbox build (#10699) --- winml/test/api/LearningModelSessionAPITest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winml/test/api/LearningModelSessionAPITest.cpp b/winml/test/api/LearningModelSessionAPITest.cpp index 65e44275e1..c2aec18038 100644 --- a/winml/test/api/LearningModelSessionAPITest.cpp +++ b/winml/test/api/LearningModelSessionAPITest.cpp @@ -1090,6 +1090,7 @@ static void SetIntraOpThreadSpinning() { } static void SetName() { + #ifndef BUILD_INBOX // load the model with name 'squeezenet_old' LearningModel model = nullptr; WINML_EXPECT_NO_THROW(APITest::LoadModel(L"model.onnx", model)); @@ -1111,6 +1112,7 @@ static void SetIntraOpThreadSpinning() { WINML_EXPECT_NO_THROW(APITest::LoadModel(L"model_name_changed.onnx", model_name_changed)); model_name = model_name_changed.Name(); WINML_EXPECT_EQUAL(model_name, new_name); + #endif }