From patchwork Fri Jun 22 21:57:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Strachan X-Patchwork-Id: 934129 X-Patchwork-Delegate: petr.vorel@gmail.com 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=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="qed5KtSJ"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41DjHF1d2sz9s31 for ; Mon, 25 Jun 2018 18:38:00 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 385713E75D0 for ; Mon, 25 Jun 2018 10:37:58 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id 257963E609C for ; Fri, 22 Jun 2018 23:57:22 +0200 (CEST) Received: from mail-qt0-x24a.google.com (mail-qt0-x24a.google.com [IPv6:2607:f8b0:400d:c0d::24a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 2BC292000E5 for ; Fri, 22 Jun 2018 23:57:22 +0200 (CEST) Received: by mail-qt0-x24a.google.com with SMTP id j11-v6so6478335qtf.15 for ; Fri, 22 Jun 2018 14:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:in-reply-to:message-id:references:subject:from:to :cc; bh=S6OnPoI3jzy6eTrzU/DVSdtZNPkIYJTbto7ii+9fvDE=; b=qed5KtSJqw8dtBt6Jv/Ym7AHmYpJg2Oy5FzLbC5I1/6/ctjdzhFYdAke9BXZ22WGBS bdKe8M0o3oeQVyA3DLBUIBFjptBkVVTFGvMMXX6aFHaRLtKuF7idpAqgp7QjuzLDl5fu GjwsGcOY8WrP+Fa2WU5iFEbQ923aeTujrMqHf4GbpmoBQWSYne9DIxNdf5iaPE/9OG4D kxhabV7jxUL7QWDcZqdIeRz+U2ehwHa79YGh71HLqm/yUnwuj98FoIrXCM89RokSVsX2 q6ViOrjiT1aeMFhUtNXn7wAR8y31jFpLQfJEx3ipEjnwF1FfAyrXxIaqpc7T/aBjJ/0X Wqng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id :references:subject:from:to:cc; bh=S6OnPoI3jzy6eTrzU/DVSdtZNPkIYJTbto7ii+9fvDE=; b=bwqXyTDhX91crLjlsW/xcXGCjsh4Z5+2HEfkTwzn/cqZ85ZSbpHHwh8t8AMXpYyChH rDr2fYWZocQ0/Xpf084+6fuTz6kZg7x8VYPjK6a2VtxUdjxoAQ7bOtrQFLEkxN9ZnzJj /ziErMtoeDbIV6uxokz6L7xfGif4ntIxSPqwhjx1y0d2HUYAo2mmskhcwjbhd99D/Bho ET7vRrdS+NJfQGgViquu8dApl7dJxKTwyxAFo2Nv+QmqOnT5s7Z2UNGdsDaC2034z8A2 BOyuSwZ1DXPYPKPpaRCuRD5kCXS2saCccWX2xSn0FEq8aDuwKltyIlvKrpYpivFXeEM0 5DhA== X-Gm-Message-State: APt69E1iOPHuGH+aVi+TG8YmWSflXSvIlo8x6ITNwUr1YppE9iBAHNvD nsIYOYtC8ZdtbNCgtFjOjH1/jyKyVf8nzomEb+ilKhtz4Vp4gvJ59NJynBDjEr3yLs9iwLamD7n HYR5OWsVK5bfxNThal9qQiahD+v2ocifWScGgaV2AyLey7Rg3Hx4QZgmT782Oh9wr X-Google-Smtp-Source: AAOMgpeh+St/qGbmrhM1BgOEZgVM2NhVq1IWuSvTxg/6HuJc658+M9Tk4t/asV29WuAUr22w92Jghd0I16sQf1w= MIME-Version: 1.0 X-Received: by 2002:a0c:89ed:: with SMTP id 42-v6mr1808449qvs.36.1529704640659; Fri, 22 Jun 2018 14:57:20 -0700 (PDT) Date: Fri, 22 Jun 2018 14:57:10 -0700 In-Reply-To: <20180622215710.126661-1-astrachan@google.com> Message-Id: <20180622215710.126661-4-astrachan@google.com> References: <20180622215710.126661-1-astrachan@google.com> X-Mailer: git-send-email 2.18.0.rc2.346.g013aa6912e-goog From: Alistair Strachan To: ltp@lists.linux.it X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-7.4 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it X-Mailman-Approved-At: Mon, 25 Jun 2018 10:37:44 +0200 Cc: kernel-team@android.com Subject: [LTP] [PATCH] abs01: Switch from to 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" The is an obsolete glibc interface that wraps and . The abs01 test only uses it for MININT, which can be switched over to and INT_MIN, for increased portability. Signed-off-by: Alistair Strachan --- testcases/misc/math/abs/abs01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/misc/math/abs/abs01.c b/testcases/misc/math/abs/abs01.c index c0659fa6d..c62bf0303 100644 --- a/testcases/misc/math/abs/abs01.c +++ b/testcases/misc/math/abs/abs01.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include /***** LTP Port *****/ @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) /*--------------------------------------------------------------*/ blenter(); - i = llabs(MININT) + (long long)MININT; + i = llabs(INT_MIN) + (long long)INT_MIN; if (i != 0) { fprintf(temp, "abs of minimum integer failed.");