Skip to content

Commit 70ff2c6

Browse files
author
Aditya Rastogi
committed
Try to fix build break on Linux
1 parent 55841b4 commit 70ff2c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

onnxruntime/test/shared_lib/test_model_builder_api.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,9 @@ TEST(ModelEditorCompileAPITest, CompileFromOrtModelToFile) {
10201020
// actionable error message.
10211021
TEST(ModelEditorCompileAPITest, LoadConfigFromModelEnvVarFailsForOrtModel) {
10221022
// RAII helper saves the current env var value and restores it when the scope exits.
1023-
onnxruntime::test::ScopedEnvironmentVariables scoped_env(
1024-
{{"ORT_LOAD_CONFIG_FROM_MODEL", "1"}});
1023+
onnxruntime::test::EnvVarMap env_vars;
1024+
env_vars["ORT_LOAD_CONFIG_FROM_MODEL"] = "1";
1025+
onnxruntime::test::ScopedEnvironmentVariables scoped_env(env_vars);
10251026

10261027
std::vector<std::unique_ptr<std::vector<float>>> weights;
10271028
auto model = CreateSimpleGemmModel(weights);

0 commit comments

Comments
 (0)