Skip to content

Commit 40ea92c

Browse files
committed
[lldb] Update ScriptInterpreterTests for CommandReturnObject API change
1 parent e6ada71 commit 40ea92c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ TEST_F(ScriptInterpreterTest, ExecuteOneLine) {
4848
CommandReturnObject result(/*colors*/ false);
4949
EXPECT_TRUE(script_interpreter.ExecuteOneLine("foo = 1", &result));
5050
EXPECT_FALSE(script_interpreter.ExecuteOneLine("nil = foo", &result));
51-
EXPECT_TRUE(result.GetErrorData().starts_with(
52-
"error: lua failed attempting to evaluate 'nil = foo'"));
51+
EXPECT_EQ(result.GetErrorString().find(
52+
"error: lua failed attempting to evaluate 'nil = foo'"), 0 );
5353
}

0 commit comments

Comments
 (0)