Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 620E0C4332F for ; Tue, 14 Nov 2023 02:21:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjKNCVf (ORCPT ); Mon, 13 Nov 2023 21:21:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbjKNCVf (ORCPT ); Mon, 13 Nov 2023 21:21:35 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A90A11A for ; Mon, 13 Nov 2023 18:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699928490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CzWJN7QFvuQWUTujnU3SUTX0+8TfJ2+m0rr0BLKz3ZM=; b=SaVNWy2z+joJVga9rRuNvnm/pexJy5HfsDLSO/ObT+i8Nm4e6K50y0rjM8iBmKo7spkx77 U2kPjil/npe2BQRW8OPVHcavWs9ktRcFkVHQ5rdyg1axj7Uk6fFx/4iHFiuulWAAMHrRG2 xzQJdhB5H+G26dU9yfY9mi+pqFTXhwo= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-288-mI2Y_fd7MSqcH-TyN5NMww-1; Mon, 13 Nov 2023 21:21:28 -0500 X-MC-Unique: mI2Y_fd7MSqcH-TyN5NMww-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4763A3C025BC; Tue, 14 Nov 2023 02:21:28 +0000 (UTC) Received: from dev64.localdomain.com (unknown [10.64.240.70]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0769F492BFD; Tue, 14 Nov 2023 02:21:26 +0000 (UTC) From: Masatake YAMATO To: util-linux@vger.kernel.org Cc: glaubitz@physik.fu-berlin.de, Masatake YAMATO Subject: [PATCH] tests: (lsfd::column-xmode) ignore "rwx" mappings Date: Tue, 14 Nov 2023 11:21:22 +0900 Message-ID: <20231114022122.1292703-1-yamato@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 Precedence: bulk List-ID: X-Mailing-List: util-linux@vger.kernel.org This change fixes the issue about lsfd reported in https://marc.info/?l=util-linux-ng&m=169972678725084&w=2 column-xmode test case assumes an executable file has only one "x" mapping like: % pmap $$ | grep ${SHELL##*/} 1292343: zsh 0000562386c1c000 92K r---- zsh 0000562386c33000 716K r-x-- zsh << 0000562386ce6000 88K r---- zsh 0000562386cfc000 8K r---- zsh 0000562386cfe000 24K rw--- zsh However, this assumption is wrong on Sparc64: % pmap $$ 1490470: zsh 0000010000000000 792K r-x-- zsh << 00000100001fe000 8K r---- zsh 0000010000200000 32K rwx-- zsh << Two "x" mappings are found. As a result, the original test case failed. Signed-off-by: Masatake YAMATO --- tests/ts/lsfd/column-xmode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ts/lsfd/column-xmode b/tests/ts/lsfd/column-xmode index 7fea4b0ec..dd8539837 100755 --- a/tests/ts/lsfd/column-xmode +++ b/tests/ts/lsfd/column-xmode @@ -82,7 +82,7 @@ ts_init_subtest "XMODE-w-bit" wait "${MKFDS_PID}" ts_finalize_subtest -EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-")' +EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-") and (MODE != "rwx")' ts_init_subtest "MODE-x-bit" if [ "$QEMU_USER" == "1" ]; then ts_skip_subtest "running under qemu-user emulation" -- 2.41.0