From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22691 invoked from network); 18 Sep 2022 00:41:36 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 18 Sep 2022 00:41:36 -0000 Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 5d9474c0; Sun, 18 Sep 2022 00:41:24 +0000 (UTC) Return-Path: Received: from pauli.colberg.org (pauli.colberg.org [159.69.138.60]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id c00473a4 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 18 Sep 2022 00:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colberg.org; s=20160215; t=1663461681; bh=Gv0KXisxrrsP9pYQmJoT39NTxf8c12Fvmg66ZKjobQk=; h=From:To:Cc:Subject:Date; b=lKRepHKL60Uprtx/jI0g6U4obIx3jPMYMDrGxPWW01lv3An9Dvn4I7K3oWaHO4Wz7 p0u/Uz8nI/SMXv2g0VXesX25dJOHkdpjhlmdcr0xNewsyJkXnDTc2L/fvOV+TjM0ep HmkIFWmJwyr/S9luHvWLotLgfqG+UcIoAJsMueQ3JVrWjjCiUcCU39HOuJD5Faijdv lm+ZJ7xEt9jLNeIzzFf6loUgBEc4cxLk4mPCE9NRtrWYTAmpxkL/YMvbksvX3fkgUl 9haXUcQkgNXmTC4dtGCMzPvA2N5WGf/C7OQIly1CMjSDkiWcDPxi8EKv4GX0bxyVGN 6neLQUIIlyyEA== From: Peter Colberg To: cgit@lists.zx2c4.com Cc: Peter Colberg , Sakura286 , Paul Wise Subject: [PATCH v1] tests: fix test_no_home_access on riscv64 Date: Sat, 17 Sep 2022 20:40:59 -0400 Message-Id: <20220918004059.28596-1-peter@colberg.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" On riscv64, access(2) does not exist and faccessat(2) is called with the directory file descriptor set to AT_FDCWD, which behaves the same as access(2). Trace access(2), faccessat(2), and faccessat2(2) to ease porting to future architectures and do not fail if any of these does not exist depending on architecture and kernel version. Link: https://bugs.debian.org/1019369 Co-Developed-by: Sakura286 Co-Developed-by: Paul Wise Signed-off-by: Peter Colberg --- tests/t0109-gitconfig.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/t0109-gitconfig.sh b/tests/t0109-gitconfig.sh index 189ef28..f67f553 100755 --- a/tests/t0109-gitconfig.sh +++ b/tests/t0109-gitconfig.sh @@ -24,7 +24,8 @@ test_no_home_access () { -E HOME="$non_existent_path" \ -E CGIT_CONFIG="$PWD/cgitrc" \ -E QUERY_STRING="url=$1" \ - -e access -f -o strace.out cgit && + -e '?access,?faccessat,?faccessat2' \ + -f -o strace.out cgit && ! grep "$non_existent_path" strace.out } -- 2.30.2