[Lldb-commits] [lldb] [lldb] Fix testErrorMessages test cases in commands/trace/ (PR #168996)

via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 21 17:04:39 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Zyn (zyn-li)

<details>
<summary>Changes</summary>

This patch fix the assertion text in `testErrorMessages` in some IntelPT test cases. 

Test: 
Enable intel-pt test plygin with cmake flag: `-DLLDB_BUILD_INTEL_PT=ON` and together with `DLIBIPT_INCLUDE_PATH` `DLIBIPT_LIBRARY_PATH` and `DLIBIPT_LIBRARY` 

build lldb 
 
lldb-dotest -p TestTraceDumpInfo
lldb-dotest -p TestTraceExport 
lldb-dotest -p TestTraceSave

---
Full diff: https://github.com/llvm/llvm-project/pull/168996.diff


3 Files Affected:

- (modified) lldb/test/API/commands/trace/TestTraceDumpInfo.py (+1-1) 
- (modified) lldb/test/API/commands/trace/TestTraceExport.py (+1-1) 
- (modified) lldb/test/API/commands/trace/TestTraceSave.py (+1-1) 


``````````diff
diff --git a/lldb/test/API/commands/trace/TestTraceDumpInfo.py b/lldb/test/API/commands/trace/TestTraceDumpInfo.py
index 52449631f6aa9..d63884067a2cf 100644
--- a/lldb/test/API/commands/trace/TestTraceDumpInfo.py
+++ b/lldb/test/API/commands/trace/TestTraceDumpInfo.py
@@ -34,7 +34,7 @@ def testErrorMessages(self):
 
         self.expect(
             "thread trace dump info",
-            substrs=["error: Process is not being traced"],
+            substrs=["error: process is not being traced"],
             error=True,
         )
 
diff --git a/lldb/test/API/commands/trace/TestTraceExport.py b/lldb/test/API/commands/trace/TestTraceExport.py
index a6ca736d3c5a4..1aff7674ac6f6 100644
--- a/lldb/test/API/commands/trace/TestTraceExport.py
+++ b/lldb/test/API/commands/trace/TestTraceExport.py
@@ -38,7 +38,7 @@ def testErrorMessages(self):
 
         self.expect(
             f"thread trace export ctf --file {ctf_test_file}",
-            substrs=["error: Process is not being traced"],
+            substrs=["error: process is not being traced"],
             error=True,
         )
 
diff --git a/lldb/test/API/commands/trace/TestTraceSave.py b/lldb/test/API/commands/trace/TestTraceSave.py
index 4e3c70695bcee..776a0b199361c 100644
--- a/lldb/test/API/commands/trace/TestTraceSave.py
+++ b/lldb/test/API/commands/trace/TestTraceSave.py
@@ -40,7 +40,7 @@ def testErrorMessages(self):
         self.expect("run")
 
         self.expect(
-            "trace save", substrs=["error: Process is not being traced"], error=True
+            "trace save", substrs=["error: process is not being traced"], error=True
         )
 
     @skipIfNoIntelPT

``````````

</details>


https://github.com/llvm/llvm-project/pull/168996


More information about the lldb-commits mailing list