-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reproducers] Serialize process arguments in ProcessInfo
While debugging why TestProcessList.py failed during passive replay, I remembered that we don't serialize the arguments for ProcessInfo. This is necessary to make the test pass and to make platform process list -v behave the same during capture and replay. Differential revision: https://reviews.llvm.org/D79646
- Loading branch information
1 parent
9202df3
commit bad6154
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# UNSUPPORTED: system-freebsd | ||
|
||
# Test that ProcessInfo is correctly serialized by comparing the output of | ||
# 'platform process list -v' during capture and replay. The test assumes that | ||
# there's at least two processes. | ||
|
||
# RUN: %lldb -x -b -o 'platform process list -v' -o 'reproducer generate' --capture --capture-path %t.repro > %t.log | ||
# RUN: %lldb --replay %t.repro >> %t.log | ||
# RUN: cat %t.log | FileCheck %s | ||
|
||
# CHECK: [[PROCS:[0-9]+]] matching processes were found | ||
# CHECK: PID PARENT USER GROUP EFF USER EFF GROUP TRIPLE ARGUMENTS | ||
# CHECK-NEXT: ====== ====== ========== ========== ========== ========== ============================== ============================ | ||
# CHECK-NEXT: [[PID0:[0-9]+]] [[PROC0:.*]] | ||
# CHECK-NEXT: [[PID1:[0-9]+]] [[PROC1:.*]] | ||
# CHECK: Reproducer written to | ||
# CHECK: [[PROCS]] matching processes were found | ||
# CHECK: PID PARENT USER GROUP EFF USER EFF GROUP TRIPLE ARGUMENTS | ||
# CHECK-NEXT: ====== ====== ========== ========== ========== ========== ============================== ============================ | ||
# CHECK-NEXT: [[PID0]] [[PROC0]] | ||
# CHECK-NEXT: [[PID1]] [[PROC1]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters