[Lldb-commits] [lldb] 40ea92c - [lldb] Update ScriptInterpreterTests for CommandReturnObject API change
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 21 11:38:31 PDT 2024
Author: Jonas Devlieghere
Date: 2024-10-21T11:37:26-07:00
New Revision: 40ea92c859234d536553cf26650e89d6e52071c6
URL: https://github.com/llvm/llvm-project/commit/40ea92c859234d536553cf26650e89d6e52071c6
DIFF: https://github.com/llvm/llvm-project/commit/40ea92c859234d536553cf26650e89d6e52071c6.diff
LOG: [lldb] Update ScriptInterpreterTests for CommandReturnObject API change
Added:
Modified:
lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp b/lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp
index 2693bef3f5fbd2..214de14f73ff9e 100644
--- a/lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp
+++ b/lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp
@@ -48,6 +48,6 @@ TEST_F(ScriptInterpreterTest, ExecuteOneLine) {
CommandReturnObject result(/*colors*/ false);
EXPECT_TRUE(script_interpreter.ExecuteOneLine("foo = 1", &result));
EXPECT_FALSE(script_interpreter.ExecuteOneLine("nil = foo", &result));
- EXPECT_TRUE(result.GetErrorData().starts_with(
- "error: lua failed attempting to evaluate 'nil = foo'"));
+ EXPECT_EQ(result.GetErrorString().find(
+ "error: lua failed attempting to evaluate 'nil = foo'"), 0 );
}
More information about the lldb-commits
mailing list