Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 01c8e83

Browse files
authoredApr 16, 2025··
Fix compile issue in Azure EP unit test (#24446)
### Description Fix compilation issue (undeclared identifier) in Azure EP unit test. ### Motivation and Context A previous PR caused a compilation issue in the Azure EP unit test: #24433 Our PR CI pipelines did not catch it. It was caught by our post-merge packaging pipelines. ```shell D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(28,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj] D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(29,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj] D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(30,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj] ```
1 parent 42c2a62 commit 01c8e83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎onnxruntime/test/providers/azure/azure_basic_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ TEST(AzureEP, TestSessionCreation) {
2525

2626
// Use canonical EP name 'AzureExecutionProvider'
2727
Ort::SessionOptions session_options2;
28-
session_options.AddConfigEntry("azure.endpoint_type", "triton");
29-
session_options.AppendExecutionProvider(kAzureExecutionProvider, options);
30-
EXPECT_NO_THROW((Ort::Session{*ort_env, ort_model_path, session_options}));
28+
session_options2.AddConfigEntry("azure.endpoint_type", "triton");
29+
session_options2.AppendExecutionProvider(kAzureExecutionProvider, options);
30+
EXPECT_NO_THROW((Ort::Session{*ort_env, ort_model_path, session_options2}));
3131
}
3232
} // namespace test
3333
} // namespace onnxruntime

0 commit comments

Comments
 (0)
Please sign in to comment.