From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48153 invoked by alias); 22 Jan 2016 08:57:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 48129 invoked by uid 89); 22 Jan 2016 08:57:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:910, 2016-01-22, 208, 20160122 X-HELO: mail-pa0-f68.google.com Received: from mail-pa0-f68.google.com (HELO mail-pa0-f68.google.com) (209.85.220.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 22 Jan 2016 08:57:34 +0000 Received: by mail-pa0-f68.google.com with SMTP id yy13so2861595pab.1 for ; Fri, 22 Jan 2016 00:57:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=EQU2InAEaCP5dMTMYtFH/H173HWmi5ZLo2Q1xI5qeeE=; b=Ll469fRiKStSUM0Fgz0MJ9SRxs+x4ebWa2Ijcn+2OT3eU1S/pT3+3F0rZ1Sx9lNRQE SrDrlbbtAn75UD6owT0pb/p8zyeNj2dvPv/LKQiNnc88sJXephOCUB1ko6P9565Vx5p5 6d2vjGLvHS7p52Ab+i7zvMhvs9/g1rCVr0Nzbq8OyjxN/Gnlhc6lAser4Y7hpI4k/U5m j/KNvEICxnnuenB1omnVUxe3qfy+AKxIps5+qf2st0UkI8vOb7/DerCvEuaTZnh2N0Dv OsBZgWkVzy4chxneLgaP9djnxZVAxa/HOlXLzhwYqEGE8mVFHXpr5vJz8KMJ7X0cbS6h D9EA== X-Gm-Message-State: AG10YORaPLaV//cp5XEEn+NnkB3eLFyWjltC3k48/I42OzRQjGGNZn8go9fK/fp0Hpoghw== X-Received: by 10.67.15.2 with SMTP id fk2mr2589848pad.99.1453453053093; Fri, 22 Jan 2016 00:57:33 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id s84sm7937096pfa.74.2016.01.22.00.57.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 00:57:32 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH OBV] [testsuite] Unbuffer the output in gdb.base/multi-forks.c Date: Fri, 22 Jan 2016 08:57:00 -0000 Message-Id: <1453453048-22062-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00556.txt.bz2 This patch unbuffer the output of the program so that the test harness can count the number of "done" from output correctly. I'll push it in. gdb/testsuite: 2016-01-22 Yao Qi PR testsuite/19491 * gdb.base/multi-forks.c: Include ../lib/unbuffer_output.c (main): Call gdb_unbuffer_output. --- gdb/testsuite/gdb.base/multi-forks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.base/multi-forks.c b/gdb/testsuite/gdb.base/multi-forks.c index 994d0c7..06579c8 100644 --- a/gdb/testsuite/gdb.base/multi-forks.c +++ b/gdb/testsuite/gdb.base/multi-forks.c @@ -20,6 +20,8 @@ #include #include +#include "../lib/unbuffer_output.c" + pid_t pids[4]; int @@ -27,6 +29,8 @@ main() { int i; + gdb_unbuffer_output (); + for (i = 0; i < 4; i++) pids [i] = fork (); -- 1.9.1