From patchwork Thu Feb 21 09:00:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 1045887 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="VoXAW83O"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 444pNj6CQkz9sBr for ; Thu, 21 Feb 2019 20:01:09 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 6704D294ADE for ; Thu, 21 Feb 2019 10:01:07 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) by picard.linux.it (Postfix) with ESMTP id 703193EA220 for ; Thu, 21 Feb 2019 10:00:59 +0100 (CET) Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id ECBCB603468 for ; Thu, 21 Feb 2019 10:00:58 +0100 (CET) Received: by mail-pg1-x542.google.com with SMTP id s198so13477963pgs.2 for ; Thu, 21 Feb 2019 01:00:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yj7G0mt6IAhXzXs48C/jPh3OpUgtTFYOPpqse8N1/Cs=; b=VoXAW83Od4KoXwbCo4mqVQOtsgY8z51Z6fvP11E6tDdVuAAHEkxNwENru2Ok5wuPgi DKmRfHRdPV68C6fLgM6H6GspNeaAmkq75mNfgBG038CUvPZDXHPcD13VVkoC0CrSepzq bz7tAMH5AFQUCICXdj73N4+lKGrL+eFNBEBpfQc9ikzjN6DwL2/dgOR7quBht1ee0ECK Yy2Za5ur6LRNcc+VBo1b0e9EDJLWaGS5L+cwI+Nqh6Mi6IyhdFPi2ek4VA7R/x7SlMZf LKCL/6gKu3qUR4czLwdLE7c2cPonEERNhy8rG7IxYUtxh5wOIyEtOq9rWHye35pRjlyr G6dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yj7G0mt6IAhXzXs48C/jPh3OpUgtTFYOPpqse8N1/Cs=; b=ZCjnKWXCIEo6rn59HmOfXWT+VdBDn59fERxEaZRB9LbjHVS1Xr4WYmCy8iS7CiWPH7 rH9gUN5zJyyXFtHlb4vJ0+EnsQ4CQsOPYzAUl1M7T+VFNiBv/nlLsumzn2mSuVC8MRsi zb1KOm/oCDL7SSRqusqZ30YYwrXyJzM20LIFN+fyvFHk/AUGJFC5ZB9yR3PmT89o1cDL XKs8X0DMy5kuYaC391rd5A03m2k5//wfSx/MKiFx1VgBrU0yCtq/K12k0XvJCQVes4bl 7v2Hf55Q08rlUKpV12ORS9D17o6VVe02MW+BwXrIE4Qqme0RDD520UZVTNtRpGKMrFu8 5CeQ== X-Gm-Message-State: AHQUAubkprieJHPgPkw3IqgfUxGPmyjdNOsczBoRvIz+AiHcSDsHyTSL Ce5QZlfWPG/jDqJcG5MXVtFhHA== X-Google-Smtp-Source: AHgI3IYN4x8NaLMqbNlAlsGoeo5EhR10DnUTvCFxXW+3sKKV1BdY9m2FjBxnwtQj+Mju4hPPoO2a9Q== X-Received: by 2002:a62:1043:: with SMTP id y64mr39688451pfi.78.1550739656366; Thu, 21 Feb 2019 01:00:56 -0800 (PST) Received: from localhost.localdomain ([117.252.69.94]) by smtp.gmail.com with ESMTPSA id v4sm27703948pff.77.2019.02.21.01.00.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Feb 2019 01:00:55 -0800 (PST) From: Sumit Garg To: chrubis@suse.cz, ltp@lists.linux.it Date: Thu, 21 Feb 2019 14:30:10 +0530 Message-Id: <1550739616-24054-4-git-send-email-sumit.garg@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550739616-24054-1-git-send-email-sumit.garg@linaro.org> References: <1550739616-24054-1-git-send-email-sumit.garg@linaro.org> X-Virus-Scanned: clamav-milter 0.99.2 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-5.smtp.seeweb.it Cc: daniel.thompson@linaro.org Subject: [LTP] [PATCH v4 3/9] lib/tst_test: define TEST_VOID() macro X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Define TEST_VOID() macro for syscalls whose return type is void like sync() etc. Signed-off-by: Sumit Garg --- include/tst_test.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/tst_test.h b/include/tst_test.h index 12dda2e..03c88e3 100644 --- a/include/tst_test.h +++ b/include/tst_test.h @@ -216,6 +216,13 @@ void tst_reinit(void); TST_ERR = errno; \ } while (0) +#define TEST_VOID(SCALL) \ + do { \ + errno = 0; \ + SCALL; \ + TST_ERR = errno; \ + } while (0) + extern long TST_RET; extern int TST_ERR;