From b30841ae95bcf8244745f96bfb7098bcfef5f039 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Sat, 5 Nov 2016 14:45:13 +0000 Subject: make-core.sh: add FreeBSD support Differential Revision: https://reviews.llvm.org/D26315 llvm-svn: 286035 --- .../postmortem/linux-core/make-core.sh | 39 +++++++++++++++++----- 1 file changed, 30 insertions(+), 9 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh index efe1b801df3..9dd83f19c76 100755 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh @@ -1,4 +1,30 @@ -#! /bin/bash +#! /bin/sh + +linux_check_core_pattern() +{ + if grep -q '^|' &2 + exit 1 + ;; +esac set -e -x @@ -10,13 +36,8 @@ EOF exit 1 fi -if grep -q '^|' smaller core files. -- cgit v1.2.3