From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XormM-0006zc-Fq for qemu-devel@nongnu.org; Thu, 13 Nov 2014 05:37:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XormD-0002kk-F7 for qemu-devel@nongnu.org; Thu, 13 Nov 2014 05:37:30 -0500 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:53672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XormC-0002f4-Qc for qemu-devel@nongnu.org; Thu, 13 Nov 2014 05:37:21 -0500 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Nov 2014 20:37:17 +1000 Received: from d23relay06.au.ibm.com (d23relay06.au.ibm.com [9.185.63.219]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id A33293578064 for ; Thu, 13 Nov 2014 21:37:14 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sADAawwv29622442 for ; Thu, 13 Nov 2014 21:36:58 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sADAbDLb006046 for ; Thu, 13 Nov 2014 21:37:14 +1100 From: Mao Chuan Li Date: Thu, 13 Nov 2014 18:36:56 +0800 Message-Id: <1415875021-15248-5-git-send-email-maochuan@linux.vnet.ibm.com> In-Reply-To: <1415875021-15248-1-git-send-email-maochuan@linux.vnet.ibm.com> References: <1415875021-15248-1-git-send-email-maochuan@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v1 RFC 4/9] qemu-iotests: fix test 039 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Michael Mueller , Mao Chuan Li , Alexander Graf , Christian Borntraeger , Stefan Hajnoczi , Cornelia Huck For successful execution of case 039, core dump need be disabled. Just running "ulimit -c 0" command is not enough when the /proc/sys/kernel/core_pattern indicates to pipe the dump to another application. So we must erase the pattern in addition to the ulimit command. Reviewed-by: Michael Mueller Signed-off-by: Mao Chuan Li --- tests/qemu-iotests/039 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039 index 84c9167..bb9382a 100755 --- a/tests/qemu-iotests/039 +++ b/tests/qemu-iotests/039 @@ -34,6 +34,7 @@ status=1 # failure is the default! _cleanup() { _cleanup_test_img + _restore_core_pattern } trap "_cleanup; exit \$status" 0 1 2 3 15 @@ -41,6 +42,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter +_erase_core_pattern + _supported_fmt qcow2 _supported_proto file _supported_os Linux -- 1.9.3