From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9AA6A0C47; Mon, 26 Jul 2021 14:33:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 558C140F35; Mon, 26 Jul 2021 14:33:12 +0200 (CEST) Received: from mx0a-002c1b01.pphosted.com (mx0a-002c1b01.pphosted.com [148.163.151.68]) by mails.dpdk.org (Postfix) with ESMTP id 0436540DDA for ; Mon, 26 Jul 2021 14:33:10 +0200 (CEST) Received: from pps.filterd (m0127837.ppops.net [127.0.0.1]) by mx0a-002c1b01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16QCRNgH011578; Mon, 26 Jul 2021 05:33:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=proofpoint20171006; bh=STm07eLZonZuLqlzNPnQbAdM8mutMKL+kwMJXllf7W8=; b=AUaGMvDVSiFuIuy0eQq7HydKrtoA2YMAGQ9YDcP+MkX9BvaCRoShclgm70YmBYPMMiVE Z9HhPfB9kjeNqaAZsWISTnXKsiDKrdcE7NsqaKUUeckzs5R5X7ymA90VKgV9pbOjDCyP akXMx9yK5m7Rwu7bCMi8f76csiJhZLyc9uqvU4OLw8OEDZckzvIq71ph14G5WOfou+Yu 8tX7jhnkjQeJkytB+h4DeFW9TXahZTAOwAmv8X76Rp1n2O1UZ13+TTQaqVao99VaGQIn F0yEQQh6aAXQDNCxADVTRWqgCNW4FHjRn/wnsvAEN9qCj7jBYURKlnz0255sMKomF9xe fg== Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2174.outbound.protection.outlook.com [104.47.55.174]) by mx0a-002c1b01.pphosted.com with ESMTP id 3a1m08gxxa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jul 2021 05:33:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gEDyqqJ1/YQXWOSNxmCD2+77IMlSBgU4dRSqm/Bq1n/QHU13xfXb1jzEaVhU+VqCQC37P28ZdrxvuaW22fRXipsGgpmvqB86kIv65EunBpMwmnrCr8YyObcAJ5LCI3C9uypFfQEXNB883VvO66U+sHE7JOKRkp4Z2Ixgdu5MUgi30N5ZMH3VFzU8+yXGVaPyLlRNuPp1pjfE0GbqaWqNOb4Nu3F1wYRZPhiqvp2EblGZ0C3EjRX6bl58aMSS8EC920oB++1WJKRVgfeHBjypCiYKWbxNeUdH/uHRSF1+SY4r4mR9qMHm5x+Fg9UtwDsx5qwdu3CndzA2BwosiOjzVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=STm07eLZonZuLqlzNPnQbAdM8mutMKL+kwMJXllf7W8=; b=Qq9o180oT3Blv8KFurEPRBvzTlHeukmhtluBP/RDOKvXb5J7ORh0HTFZ4lT7U2x+C5XYiyGs5TaCYYYeaQrI8llAQ5Y20PMjB4PmFalh65dpbTrywN/DxLqeZB/OkWnrVyYXrg8copHOZfnVS3imjgMCb7izKELU0RFce3ijNWvJIFejaMHz4W0HDi+KdIUdkngab9Ee2EW0sNO77UrFae/ym/8M8XcrxTMZj5WgbNcNjKJbJ0+yu1G//R9wmstGnMrwfgqmOhGtnE6GK76J77SZLd4QpQ9jVxFlcYs+b533ZwNTTpt8pPFgGL9avZDZp8YdNwHaRuC7XVzVDdAFaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none Received: from BL0PR02MB4580.namprd02.prod.outlook.com (2603:10b6:208:40::27) by BL0PR02MB4308.namprd02.prod.outlook.com (2603:10b6:208:40::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Mon, 26 Jul 2021 12:33:03 +0000 Received: from BL0PR02MB4580.namprd02.prod.outlook.com ([fe80::6903:7fea:be33:66cc]) by BL0PR02MB4580.namprd02.prod.outlook.com ([fe80::6903:7fea:be33:66cc%3]) with mapi id 15.20.4352.031; Mon, 26 Jul 2021 12:33:02 +0000 From: John Levon To: Bruce Richardson CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] app/test: flush stdout after forking Thread-Index: AQHXghgW50Xi7dIz1UOB+iBb9eHR36tVLxkAgAABdYA= Date: Mon, 26 Jul 2021 12:33:01 +0000 Message-ID: <20210726123301.GK1120967@movementarian.org> References: <20210726121627.2324730-1-john.levon@nutanix.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nutanix.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 65af3f7c-5c9c-4062-025a-08d95031826c x-ms-traffictypediagnostic: BL0PR02MB4308: x-microsoft-antispam-prvs: x-proofpoint-crosstenant: true x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UtanvzhzPu2FX2PbkUrAfYNulSeZ4sigFMR5ePx/Zl/eg2qeCRWpY+C5LQKn4nuulh4D7kZGHWcESocqbrVKXCsDPAt7lprj+T446gAa7yy+w3yItwbsDqzDmriLU8RHCZ45p/S7KT5BsWlwfkeHbPQnzCDexsQgdz/1GwOd6OH3goEI+XPK7BGQEsdFeLrEgHjV+8wH0Hw78JtASS94NGdBztY5T7HRAc3t21uSWLYo9zm8QCSAveIAUwgDvxhNdMDNqrQt4Vbt9u3GhHQaA/le16sC2CfEVWVNh7kz+2GK4dm8Eb4xCG5ECj9/wl1MRRL06yVr1O2/9xXDfn13tq1gl+2o69bq9eW53J7W3iPF82PMTvS3uDul77Ju+ygNKhgndnCJkd9lO/U3TfdIuJeDZYC+jog+EKFY5bI+AwacJ0uXmDvRJjZV2XsCdHtqmQsjjKZyUyvBpKjCvB/qLRCC/oh4Uh3hGzAuc9pW9lUMiIqkJJqq8Oc0gNucwtIJFw3uj8UJrEmPUX0Tx3kE1dnlDlkFi6UZtt7rxtVuOEofHS1s7XGdtR0+FhMnUcfe5hUQXXiA80Oh76yIw+OLgTm9qpy8o1xO8ahqmbVK35YtaqOpcWK7iDNzv6pLSybv9+ylsVp1mOVLcDRvCLXfMrEoBAN/mj822WwIfisEuJQU9ztmuSwH4DkQPl0mDwvEJeA6clCghGg7wPHaAAo3Jw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR02MB4580.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(376002)(136003)(39860400002)(396003)(366004)(76116006)(478600001)(9686003)(44832011)(66556008)(186003)(122000001)(64756008)(5660300002)(66946007)(26005)(71200400001)(66476007)(91956017)(6486002)(6916009)(4326008)(33656002)(38100700002)(6506007)(36756003)(316002)(8676002)(2906002)(66446008)(6512007)(1076003)(86362001)(8936002)(38070700004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?KJJOdMtbILPu8xTd/L+3/+5xEnxmdaF7jBAKQV82EXAfVF3DgU4XGcJ9qv76?= =?us-ascii?Q?zAB+S0Yjtj3ZqvkR5SSnwSf4BI6vYki09+suKJuNXOokEgJez9dNUVa8CvF6?= =?us-ascii?Q?THwgHnmByItl08Opxkvnv93GY9BxXk8kM9IOxKsbr1Yp3gmRTFWFZwwX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Fr+JEuXb5vaSxRiRyJs/tJW26fIx?= =?us-ascii?Q?6tQR1NQcPGb0JzuHa8x2Di764QcSeXdp16OMGm8tNK1GHewGzTBtWU5ZVrnn?= =?us-ascii?Q?BvHlbCnLxv4h/7wt95i7Va/gYcMStxCdLzQcXgSo6+UH6LnlBOLukQlAKHSY?= =?us-ascii?Q?eKbvd9JA2VE+uuYXK4LWpMub/ZjMsMtFFpnx/sRpTFACsw32jAJpbWXkvLc6?= =?us-ascii?Q?GoufsjhtKOVa+F59quCwgLvJ4Zte1Ksuvoucg6lSM1+CNrOEWlYVCuyCIykq?= =?us-ascii?Q?D9Jt7UAEFFSNi1couHGuCDvX?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <7915ACDBE744FB4CAE6A9FEFD154D418@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR02MB4580.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65af3f7c-5c9c-4062-025a-08d95031826c X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2021 12:33:01.9822 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lDRx/lXXLPlqP4GeSBnywFLckpiz10eBEfsVYDbLH3u5Cg7UmrlyVtohK5Qttv7OtEZCaNeqEibuS9gXNZuIpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4308 X-Proofpoint-GUID: fDm8-iu4QzRXes7MEkvxvSj3P5qoeTlw X-Proofpoint-ORIG-GUID: fDm8-iu4QzRXes7MEkvxvSj3P5qoeTlw X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-26_06:2021-07-26, 2021-07-26 signatures=0 X-Proofpoint-Spam-Reason: safe Subject: Re: [dpdk-dev] [PATCH] app/test: flush stdout after forking X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Jul 26, 2021 at 01:27:48PM +0100, Bruce Richardson wrote: > On Mon, Jul 26, 2021 at 01:16:27PM +0100, John Levon wrote: > > meson test was not capturing the intended output from the child > > process; force a flush to ensure it reaches the test log. > >=20 > > Signed-off-by: John Levon > > --- > > app/test/process.h | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/app/test/process.h b/app/test/process.h > > index a09a088477..0ed91a939e 100644 > > --- a/app/test/process.h > > +++ b/app/test/process.h > > @@ -110,6 +110,7 @@ process_dup(const char *const argv[], int numargs, = const char *env_value) > > for (i =3D 0; i < num; i++) > > printf("'%s' ", argv_cpy[i]); > > printf("\n"); > > + fflush(stdout); > > =20 > I thought that "\n" normally flushes in most cases, but if explicit flush > is necessary for some cases, let's add it. stdout is only line-buffered if it's to a tty, but regardless, meson test appears to wrap all output into tmp files. I didn't dig into exactly what's going on with meson (or why the fork() matters), but certainly you don't ge= t this output *at all* under meson test (even with -v), but you do running dpdk_test directly. Furthermore, looks like others have found the same thing as there are sever= al other direct fflush()es. regards john=