mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-22 19:23:30 +00:00
Fix a problem in StacktraceTests::BasicTests (#4069)
result.size() could be zero, in this case, we shouldn't access result[0]
This commit is contained in:
parent
a859dc422c
commit
c94d9685b6
1 changed files with 0 additions and 3 deletions
|
|
@ -28,9 +28,6 @@ TEST(StacktraceTests, BasicTests) {
|
|||
// this method name should be the first on the stack as we hide the calls to the infrastructure that
|
||||
// creates the stack trace
|
||||
EXPECT_THAT(result[0], HasSubstr("BasicTests"));
|
||||
else
|
||||
// check that we have
|
||||
EXPECT_THAT(result[0], HasSubstr("Unknown symbol"));
|
||||
|
||||
try {
|
||||
ORT_THROW("Testing");
|
||||
|
|
|
|||
Loading…
Reference in a new issue