Author: Jonas Devlieghere
Date: 2022-08-11T12:44:38-07:00
New Revision: a8bc9b627ea143b84253fc911902cf2c8e429630

URL: 
https://github.com/llvm/llvm-project/commit/a8bc9b627ea143b84253fc911902cf2c8e429630
DIFF: 
https://github.com/llvm/llvm-project/commit/a8bc9b627ea143b84253fc911902cf2c8e429630.diff

LOG: [lldb] Simplify TestExec's source code (2/2)

I accidentally forgot to stage part of the changes in the previous
commit.

Added: 
    lldb/test/API/functionalities/exec/main.c

Modified: 
    lldb/test/API/functionalities/exec/TestExec.py

Removed: 
    lldb/test/API/functionalities/exec/main.cpp


################################################################################
diff  --git a/lldb/test/API/functionalities/exec/TestExec.py 
b/lldb/test/API/functionalities/exec/TestExec.py
index 1eb8c5d61683..3da9c2f6fbc3 100644
--- a/lldb/test/API/functionalities/exec/TestExec.py
+++ b/lldb/test/API/functionalities/exec/TestExec.py
@@ -44,7 +44,7 @@ def do_test(self, skip_exec):
 
         # Create any breakpoints we need
         breakpoint1 = target.BreakpointCreateBySourceRegex(
-            'Set breakpoint 1 here', lldb.SBFileSpec("main.cpp", False))
+            'Set breakpoint 1 here', lldb.SBFileSpec("main.c", False))
         self.assertTrue(breakpoint1, VALID_BREAKPOINT)
         breakpoint2 = target.BreakpointCreateBySourceRegex(
             'Set breakpoint 2 here', lldb.SBFileSpec("secondprog.cpp", False))
@@ -132,7 +132,7 @@ def test_correct_thread_plan_state_before_exec(self):
         target = self.dbg.CreateTarget(exe)
 
         (target, process, thread, breakpoint1) = 
lldbutil.run_to_source_breakpoint(
-            self, 'Set breakpoint 1 here', lldb.SBFileSpec('main.cpp', False))
+            self, 'Set breakpoint 1 here', lldb.SBFileSpec('main.c', False))
 
         # The stop reason of the thread should be breakpoint.
         self.assertState(process.GetState(), lldb.eStateStopped,
@@ -145,7 +145,7 @@ def test_correct_thread_plan_state_before_exec(self):
         # thread plan, which should be cleared when a new thread list appears.
         #
         # Continuing after this instruction step will trigger a call to
-        # ThreadPlan::ShouldReportRun, which sets the ThreadPlan's Thread 
cache to 
+        # ThreadPlan::ShouldReportRun, which sets the ThreadPlan's Thread 
cache to
         # the old Thread* value. In Process::UpdateThreadList we are clearing 
this
         # cache in preparation for the new ThreadList.
         #

diff  --git a/lldb/test/API/functionalities/exec/main.cpp 
b/lldb/test/API/functionalities/exec/main.c
similarity index 100%
rename from lldb/test/API/functionalities/exec/main.cpp
rename to lldb/test/API/functionalities/exec/main.c


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

Reply via email to