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 );
 }


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to