From patchwork Thu Dec 5 15:27:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1204653 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-107746-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="LIYvhuvm"; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="XRD2ipzv"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47TKNh2zRSz9sP6 for ; Fri, 6 Dec 2019 02:28:04 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=BKC GrZSxt+8aSjZGVRH/pu9Z03t1WguYz27EDgJPURBYrmtxq1ry11sILWUIpnp6uyX 5as0cGj/EjneUYrjVhXpAtCM8lx9ZdJRLGe5ELzjLeyZ90p1mGAaJHHej3I+AwXh G8fEIgUbR164z4lEE4gbj8dhWo3DyA59iXwbBYKA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=VpMWlwzo9 XeBfWeNklyftPUQL44=; b=LIYvhuvm1uRFbEa4B/pJfeetAeO2RG/f/So3emnGo nRUFer9u45ZzKrrxo7ilgI5cssr0TrYxWUqW+YkJT7rnMJdEGqY3sJDRekRcITcc otiE6aWXy0WxcQNCNboxb4MWKJHpJJ+nj00iE1APFvcvyiGfQ6dNFjdg2VYQcMzc rY= Received: (qmail 50802 invoked by alias); 5 Dec 2019 15:27:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 50788 invoked by uid 89); 5 Dec 2019 15:27:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575559675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DBLhzG3UY3abEsKWE+H2MxDBGGoXJQSGzcLEhIr6iuw=; b=XRD2ipzvH7m+4FEQeXQ2x6guo1rOYkntpXwoVslmX92eLRaVODXiqv8RDdeW/nf7icgmSl y+JWA9yn1YkO7Gl0S7KF8M/u6resd+/6ZOe144W0uENGolnXpiEVKevCjLc/ncDDmeKgI4 KsOtZThbPonsYYbhcIjeFbafmptBwJY= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] misc/test-errno-linux: Handle EINVAL from quotactl Date: Thu, 05 Dec 2019 16:27:51 +0100 Message-ID: <87tv6ehjwo.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 In commit 3dd4d40b420846dd35869ccc8f8627feef2cff32 ("xfs: Sanity check flags of Q_XQUOTARM call"), Linux 5.4 added checking for the flags argument, causing the test to fail due to too restrictive test expectations. ----- sysdeps/unix/sysv/linux/test-errno-linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Adhemerval Zanella diff --git a/sysdeps/unix/sysv/linux/test-errno-linux.c b/sysdeps/unix/sysv/linux/test-errno-linux.c index 0dc2f18312..83e58491ba 100644 --- a/sysdeps/unix/sysv/linux/test-errno-linux.c +++ b/sysdeps/unix/sysv/linux/test-errno-linux.c @@ -160,8 +160,9 @@ do_test (void) fails |= test_wrp (EINVAL, poll, &pollfd, -1, 0); /* quotactl returns ENOSYS for kernels not configured with CONFIG_QUOTA, and may return EPERM if called within certain types - of containers. */ - fails |= test_wrp2 (LIST (ENODEV, ENOSYS, EPERM), + of containers. Linux 5.4 added additional argument validation + and can return EINVAL. */ + fails |= test_wrp2 (LIST (ENODEV, ENOSYS, EPERM, EINVAL), quotactl, Q_GETINFO, NULL, -1, (caddr_t) &dqblk); fails |= test_wrp (EINVAL, sched_getparam, -1, &sch_param); fails |= test_wrp (EINVAL, sched_getscheduler, -1);