Message ID | 1550739616-24054-4-git-send-email-sumit.garg@linaro.org |
---|---|
State | Accepted |
Commit | 13d518242a0b994a7de48468f568a315d6694b1b |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp242789jaa; Thu, 21 Feb 2019 01:01:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZvXLe6EsTZOpJDzgUQxhVlTzfs70kIKS5Lqm1mww6mMyNM4idzHW3Rbo0tr+w5QQDpkSxc X-Received: by 2002:a50:e007:: with SMTP id e7mr30806756edl.10.1550739669401; Thu, 21 Feb 2019 01:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550739669; cv=none; d=google.com; s=arc-20160816; b=q4blkLxCtLkPvwpTHxp3H0mr1pe8YhvJsApqm9rcwsDRrMgvtWLrOg31h1h/053t1O yA19uClTUtZSeQXkY0n9+xr7ldpgACoeKlHgr5gCheC1nGvgUCleIxJeDoCCDQ7h6zqL 9LKMNJctnAsPeXmolZeiKNQouu/SLBo+Pa1/QWEhkkl8ShZ0A00IFDbkHtywfPr2OMdc zkG5NfHiqoowtoGsO418YD/wj/GCQIyeESJLdZV38IWNQkSl2eFVlyuDeHl0OxkBUe8s RCT0A/9s/6ngCqVTi+KdybW+ltoeqoHVxTZC4graroAKNqHPixUWPaFZRJu58+cGtRm0 6uBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=XWLaeIAq7XnjfxRDB21Z7CDhdeV4BSNurQwu0tU4Eu4=; b=ILi9bJ73nsAXKSSSkJxtwgWzjM8nhFAU0+BBMHEESGJZr+uhBb0GHjyvPdFgcOGdGu 5IN0i5fBNcbgEQ7P+NYf4qqNy3TGye3XUDK2e0OW7hkDdSULy/C20yGsB6JxNkw2SexZ dvvkvRuFhGOjhCuWFjWkJNPVCoU42hkURXb0enirsOzJjXQOHmzOrz/nY2OMmUskAoKH VwPfkU4eBldUPk53Shwi8mmmHyio1frHwUuv2OiXyi6qwjNIdIXmMB6nBpznotUiGUCZ ok1nfNTNWbP4Wz/pk1y+hAkRae02bJHNu4yXXvwsmRPSRUfVyr7pe8WlM65Dye4YzL9T sxIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VoXAW83O; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <ltp-bounces+patch=linaro.org@lists.linux.it> Received: from picard.linux.it (picard.linux.it. [2001:1418:10:5::2]) by mx.google.com with ESMTPS id i22si3732766edv.214.2019.02.21.01.01.09 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 01:01:09 -0800 (PST) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) client-ip=2001:1418:10:5::2; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VoXAW83O; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E9C8E3EA188 for <patch@linaro.org>; Thu, 21 Feb 2019 10:01:08 +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 <ltp@lists.linux.it>; 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 <ltp@lists.linux.it>; Thu, 21 Feb 2019 10:00:58 +0100 (CET) Received: by mail-pg1-x542.google.com with SMTP id s198so13477963pgs.2 for <ltp@lists.linux.it>; 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-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 <sumit.garg@linaro.org> 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 <ltp.lists.linux.it> List-Unsubscribe: <https://lists.linux.it/options/ltp>, <mailto:ltp-request@lists.linux.it?subject=unsubscribe> List-Archive: <http://lists.linux.it/pipermail/ltp/> List-Post: <mailto:ltp@lists.linux.it> List-Help: <mailto:ltp-request@lists.linux.it?subject=help> List-Subscribe: <https://lists.linux.it/listinfo/ltp>, <mailto:ltp-request@lists.linux.it?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ltp-bounces+patch=linaro.org@lists.linux.it Sender: "ltp" <ltp-bounces+patch=linaro.org@lists.linux.it> |
Series |
syscalls: add sync device test-cases
|
expand
|
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;
Define TEST_VOID() macro for syscalls whose return type is void like sync() etc. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> --- include/tst_test.h | 7 +++++++ 1 file changed, 7 insertions(+)