llvm/lldb/test/Shell/Commands/command-thread-siginfo.test

# REQUIRES: native && system-linux
# RUN: %clang_host -g %S/Inputs/sigchld.c -o %t
# RUN: %lldb %t -b -s %s | FileCheck %s

process launch -s
process handle SIGCHLD -s true
process continue
# CHECK: signo = [[SIGNO:[0-9]+]]
# CHECK: code = [[CODE:[0-9]+]]
# CHECK: child_pid = [[PID:[0-9]+]]
# CHECK: uid = [[UID:[0-9]+]]
# CHECK: stop reason = signal SIGCHLD
thread siginfo
# CHECK-DAG: si_signo = [[SIGNO]]
# CHECK-DAG: si_errno = 0
# CHECK-DAG: si_code = [[CODE]]
# CHECK-DAG: si_pid = [[PID]]
# CHECK-DAG: si_uid = [[UID]]
# CHECK-DAG: si_status = 14