Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix unit test check for specific error message
  • Loading branch information
adrianlizarraga committed Apr 18, 2025
commit bca3f7586cc65699eca085cd4f19ba90061ee720
4 changes: 2 additions & 2 deletions onnxruntime/test/providers/qnn/qnn_ep_context_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ TEST_F(QnnHTPBackendTests, LoadFromArrayWithQnnEpContextGenPathValidation) {
ORT_CATCH(const std::exception& e) {
ORT_HANDLE_EXCEPTION([&e]() {
std::string e_message1(std::string(e.what()));
ASSERT_TRUE(e_message1.find("Please specify a valid ep.context_file_path.") != std::string::npos);
ASSERT_TRUE(e_message1.find("Please specify a valid ep.context_file_path") != std::string::npos);
});
}

Expand All @@ -1563,7 +1563,7 @@ TEST_F(QnnHTPBackendTests, LoadFromArrayWithQnnEpContextGenPathValidation) {
ORT_CATCH(const std::exception& ex) {
ORT_HANDLE_EXCEPTION([&ex]() {
std::string e_message2(std::string(ex.what()));
ASSERT_TRUE(e_message2.find("Please specify a valid ep.context_file_path.") != std::string::npos);
ASSERT_TRUE(e_message2.find("Please specify a valid ep.context_file_path") != std::string::npos);
});
}
}
Expand Down
Loading