Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5798017pxj; Wed, 23 Jun 2021 09:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVkJzLxFnU+e1qyKe42nv6CucD9bL51cYp4iEwnb+Qv1RfcRqY3aCiTddST9Sdj2AVhW6a X-Received: by 2002:a5d:8b85:: with SMTP id p5mr230186iol.43.1624464548668; Wed, 23 Jun 2021 09:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624464548; cv=none; d=google.com; s=arc-20160816; b=baaoJI0bH3zWQ9bTkdhgeoXvjNPDy4uk397l0HWQHXxCJ9m2zhV8U4JxrCR1cg1ama vFjPlYLDLCQgJcPh788bDPN0k0FppK2lHO4nvVFlcKMqxP+u7W/nMiO/8WfUbn23fftW PuLfwBWbtOmrrEabydukLrPPl0bHAAd2hM7ijSkLhReJp0BDufU5/w28m5xdcRDEqWcj E37pIzDr5IOlTswHeJzBSiOkcW/pRzYyDaSkdFNoUmKf3a7/nrXMV6wlzbWrtuGWzYui 51JqO2+SSMstfkIhal1SSw5O7Y7qnbqx88bHz3PtWcKe9+7PxzB294DymgRLFMQN+oUL 5reA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=1MdPPUN/EDcPjkplXBAIfTOP3fh5nqKB/znLE3+1lnI=; b=gqmrHg+y18it+mtd9HUZmi9bHg1fHPXgzy6Y6gP3bGTrwGnefdz0VHWcslP08dLjHZ /cqw5Rn4+Tkfw7ccM6sb14HwR1LMqEhx8cu7HaoYHSwuk24Lp4rC181zrfWu2gEOTvkj Zk4UfwyicQ80TdhTKg4eVz8tlc8mxaIgf9hnw6Z2wXM6gzK7yp2kP3CM3tPkVYAJjNWR hIYN5eHcZ57EivMzTieVGwbpRlQbHzdPN7XfOZj1Kv3LsBZ4gZxqc6H1Garyn4w5vWq3 rG0RA6tJdkJeVTN55PIjIoEtRT7donLvjqmACkjc7USsG8ubzfwaBn3WxaWCRFQy1bV+ Qx3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=D3zBY3Kc; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=D3zBY3Kc; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=SjH31SRB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si400667jar.13.2021.06.23.09.08.50; Wed, 23 Jun 2021 09:09:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=D3zBY3Kc; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=D3zBY3Kc; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=SjH31SRB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhFWQJF (ORCPT + 99 others); Wed, 23 Jun 2021 12:09:05 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:46950 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhFWQJF (ORCPT ); Wed, 23 Jun 2021 12:09:05 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C87AA2195D; Wed, 23 Jun 2021 16:06:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1624464406; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1MdPPUN/EDcPjkplXBAIfTOP3fh5nqKB/znLE3+1lnI=; b=D3zBY3KcBViepTJDnJZl4aiiw5iV1tcAZLJ8BePlB5ODa4Zh0d9UQ0HqC47hznVDdx4PQW VTMbiQB871sCPQs9Z0lDhB2fWoP84Z9i5aaFW3dxgIPbj9O7HA3/pXz24ttfKjNW+ez0LL +UTiaCAR0o5aiLh2VMfT3SqN89w1wJI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1624464406; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1MdPPUN/EDcPjkplXBAIfTOP3fh5nqKB/znLE3+1lnI=; b=SjH31SRB76Z2lIVZ8TnVhUg5xcXzyENGJ+Y4+8gEml3g+mqrebJ3ryUiqIrG8eqb5BImXW DSuL600zFY3PW/BA== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 75ED911A97; Wed, 23 Jun 2021 16:06:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1624464406; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1MdPPUN/EDcPjkplXBAIfTOP3fh5nqKB/znLE3+1lnI=; b=D3zBY3KcBViepTJDnJZl4aiiw5iV1tcAZLJ8BePlB5ODa4Zh0d9UQ0HqC47hznVDdx4PQW VTMbiQB871sCPQs9Z0lDhB2fWoP84Z9i5aaFW3dxgIPbj9O7HA3/pXz24ttfKjNW+ez0LL +UTiaCAR0o5aiLh2VMfT3SqN89w1wJI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1624464406; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1MdPPUN/EDcPjkplXBAIfTOP3fh5nqKB/znLE3+1lnI=; b=SjH31SRB76Z2lIVZ8TnVhUg5xcXzyENGJ+Y4+8gEml3g+mqrebJ3ryUiqIrG8eqb5BImXW DSuL600zFY3PW/BA== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id vo2BGRZc02CsFwAALh3uQQ (envelope-from ); Wed, 23 Jun 2021 16:06:46 +0000 Date: Wed, 23 Jun 2021 18:06:44 +0200 From: Petr Vorel To: James Dong =?utf-8?B?KOiRo+S4luaxnyk=?= Cc: "ltp@lists.linux.it" , Alexey Kodanev , Steve Dickson , "libtirpc-devel@lists.sourceforge.net" , "linux-nfs@vger.kernel.org" Subject: Re: [LTP] [PATCH] fix rpc_suite/rpc:add check returned value Message-ID: Reply-To: Petr Vorel References: <52e4b3cba7d74f17b64816acaf50be01@inspur.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52e4b3cba7d74f17b64816acaf50be01@inspur.com> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Dong, > Hi Petr > I think this is just a simple test of some APIs, but some test cases are not standardized and cause errors like "Segmentation fault" during testing. I think it is necessary to fix these errors or delete these tests. Sure this fix can get in. I saw issues with some tests on openSUSE, but that's a separate problem (I was not able to find the problem thus report it. > Kind regards, > Dong > > +++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svc_destroy/rpc_svc_destroy.c > > @@ -46,6 +46,11 @@ int main(void) > > //First of all, create a server > > svcr = svcfd_create(fd, 0, 0); > > + > > + //check returned value > > + if ((SVCXPRT *) svcr == NULL) { IMHO casting is not required, right? Just if (svcr == NULL) { Kind regards, Petr