From patchwork Tue Aug 28 18:21:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Magic X-Patchwork-Id: 963067 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=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=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="S235Hxn/"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 420HtW6hv1z9s3x for ; Wed, 29 Aug 2018 04:52:17 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id B040C3E71C7 for ; Tue, 28 Aug 2018 20:52:13 +0200 (CEST) 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 6CEDD3E623E for ; Tue, 28 Aug 2018 20:21:44 +0200 (CEST) Received: from mail-yw1-xc41.google.com (mail-yw1-xc41.google.com [IPv6:2607:f8b0:4864:20::c41]) (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 BD6E1600486 for ; Tue, 28 Aug 2018 20:21:43 +0200 (CEST) Received: by mail-yw1-xc41.google.com with SMTP id n207-v6so953802ywn.9 for ; Tue, 28 Aug 2018 11:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0fJqcekLAfJwSdOS7cpv8B7ADGNUQ5xg3AiLqHHIAxk=; b=S235Hxn/3yE4/8axfMgEedfp/usqIaXO2/RkQ6opQ+F/a1HCto0YAz8Lk8y6WRhkuA 79nQ6/pA27GR7Dy/9CgTItfdrTipwnLoLeihM1MmfK12hGGV9CKEqLegjliWTeOj9Ily Vbln42JHP8+pHCt35Ky4igHtp2WCrRpg6ZsGvc6wI8AT4MKE1Gy6cdGvgLzRSDrhK5bg 3kWPQepJP4C1zfrbJfN3nbvCe4Po1bBcYv4SMydk/vjpV4IslbbjlZFJs2t7O7Nl7bUN fXzp4eQDJA6P/tn8+C9MVk4DM/qcEI7KWeCMQNHnFR56jDXlSD9fthzk/ENlC3n1QGK1 Wqgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0fJqcekLAfJwSdOS7cpv8B7ADGNUQ5xg3AiLqHHIAxk=; b=c/hKBQWHv2aUjvfl6+SaPomkx5U5jKoogt0Rypw8TsOcrSSSF9lSyCtojMBaRCv/pc egPkQVytIaTQUsXmir+B/BjWlZo5eVdTP6ezj6ZsSVNVcFuffKdKi+lky4/NNSMfgIQk swPQNsuKJBWSYQKFkBjTrPOZnsw1AFxNDMXnr35h9zouQGO1S6Xy9YMAHumSgvjNkzQ7 /Zj0RJpenvzpa7IU+IzNOJ4QJmgehHwIe+OoJHe0bXDkcC0GFnPnOcmDNrvl2cEfNf2y Nryiwp+Kg5v9QqlFmLbj4vVvzeI/fKKwWiU78Un9FTEF0lAWZvRiqenXPMpIqP8bFoX7 6/Dw== X-Gm-Message-State: APzg51CAX3h2MrN6I/2xdu6aIZK9rqv3PDeIv91yeTqT4YCGvJ2YHKsa 0EVlUWWXb5o/fhLYUNajfipMb6FZM8rzCDqcIQ7v8gWaVoM= X-Google-Smtp-Source: ANB0VdZ+gaWdD7iQFpbexaHoMpW0gA0YN9T0b9Ltqez2C/gmu5YaXb53Ob7MsORHYKmPXnmwkWGHgkjcS5erWMtf010= X-Received: by 2002:a81:578e:: with SMTP id l136-v6mr1523516ywb.396.1535480501964; Tue, 28 Aug 2018 11:21:41 -0700 (PDT) MIME-Version: 1.0 From: Kenneth Magic Date: Tue, 28 Aug 2018 11:21:30 -0700 Message-ID: To: ltp@lists.linux.it X-Virus-Scanned: clamav-milter 0.99.2 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-14.9 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, ENV_AND_HDR_SPF_MATCH, HTML_MESSAGE, SPF_PASS, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-5.smtp.seeweb.it X-Mailman-Approved-At: Tue, 28 Aug 2018 20:52:11 +0200 Subject: [LTP] [PATCH] Skip additional reserved signals in Android. 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" In Android's bionic libc, two additional signals are reserved and need to be skipped in the test. Signed-off-by: Kenneth Magic --- testcases/kernel/syscalls/sighold/sighold02.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/testcases/kernel/syscalls/sighold/sighold02.c b/testcases/kernel/syscalls/sighold/sighold02.c index 8df5fa7db..fdd0e736d 100644 --- a/testcases/kernel/syscalls/sighold/sighold02.c +++ b/testcases/kernel/syscalls/sighold/sighold02.c @@ -59,6 +59,12 @@ #define SIGCANCEL 32 #define SIGTIMER 33 +/* Reserved in Android's bionic libc */ +#ifdef __ANDROID__ +# define SIGLIBCORE 34 +# define SIGDEBUGGERD 35 +#endif + /* ensure NUMSIGS is defined */ #ifndef NUMSIGS # define NUMSIGS NSIG @@ -84,6 +90,10 @@ static int skip_sig(int sig) case SIGSTOP: case SIGCANCEL: case SIGTIMER: +#ifdef __ANDROID__ + case SIGLIBCORE: + case SIGDEBUGGERD: +#endif return 1; default: return 0;