llvm-project/lldb/test/Shell/Commands/command-thread-siginfo.test
Ayush Sahay d506a9ef2b [lldb] Require native for command-thread-siginfo.test
command-thread-siginfo.test employs a subject with a call to wait, and
thus requires system-linux. However, it's possible to target non-Linux
platforms despite operating on Linux hosts. So, have it require native
too.

Reviewed By: mgorny, labath

Differential Revision: https://reviews.llvm.org/D121487
2022-03-14 21:20:21 +05:30

20 lines
555 B
Plaintext

# 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