Files
clang-p2996/lldb/test/Shell/Reproducer/TestProcessList.test
Jonas Devlieghere bad61548b2 [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
2020-05-12 11:12:37 -07:00

22 lines
1.2 KiB
Plaintext

# 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]]