From patchwork Mon Jul 1 22:32:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 256233 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 77B092C0095 for ; Tue, 2 Jul 2013 08:32:45 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UtmeI-0007iN-Sy; Mon, 01 Jul 2013 22:32:42 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Utme4-0007gg-Dg for fwts-devel@lists.ubuntu.com; Mon, 01 Jul 2013 22:32:28 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Utme4-0008L6-AR for fwts-devel@lists.ubuntu.com; Mon, 01 Jul 2013 22:32:28 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH][FWTS-TEST] Simple detection of segmentation faults Date: Mon, 1 Jul 2013 23:32:26 +0100 Message-Id: <1372717946-17340-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.1.2 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King fwts tests should detect any segmentation faults in fwts or in the fwts child processes. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Keng-Yu Lin --- test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.sh b/test.sh index 9d4a9ba..7682d3d 100755 --- a/test.sh +++ b/test.sh @@ -25,7 +25,12 @@ do do if [ -x $J ]; then echo "TEST: $I, subtest $J" >> $FAILURE_LOG + ulimit -c unlimited + rm -f core* bash $J + if [ -e core* ]; then + echo "FAILED: Segmentation fault." + fi # # We can check for 0 (pass) or non-zero (fail) #