[Lldb-commits] [PATCH] D89273: [lldb] Handle alternative output in TestAbortExitCode

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 12 14:50:28 PDT 2020


kastiglione created this revision.
kastiglione added reviewers: aprantl, JDevlieghere.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
kastiglione requested review of this revision.

This test

On macOS, this test can instead return `status = 0 (0x00000000) Terminated due to signal 6`. This updates the `CHECK` accordingly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89273

Files:
  lldb/test/Shell/Process/TestAbortExitCode.test


Index: lldb/test/Shell/Process/TestAbortExitCode.test
===================================================================
--- lldb/test/Shell/Process/TestAbortExitCode.test
+++ lldb/test/Shell/Process/TestAbortExitCode.test
@@ -3,4 +3,4 @@
 RUN: %clang_host %p/Inputs/abort.c -o %t
 RUN: %lldb %t -o run -o continue | FileCheck %s
 
-CHECK: status = 6 (0x00000006)
+CHECK: {{status = 6 \(0x00000006\)|status = 0 \(0x00000000\) Terminated due to signal 6}}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89273.297696.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201012/ff4c755e/attachment.bin>


More information about the lldb-commits mailing list