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 picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C358EC77B75 for ; Fri, 5 May 2023 14:56:51 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id BF1973CB8B5 for ; Fri, 5 May 2023 16:56:49 +0200 (CEST) Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id A825A3CB687 for ; Fri, 5 May 2023 16:56:28 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 in-5.smtp.seeweb.it (Postfix) with ESMTPS id 9001C600F40 for ; Fri, 5 May 2023 16:56:27 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C5954229C1 for ; Fri, 5 May 2023 14:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683298586; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=krHbfuOB6gw+eUGqN+LB4O6QZsmSbOCbjrkqdYDJ1rU=; b=YVmJ0mFqqL+9rhCZKqg1O614FoTUVEekCru1MPX7izslIbP+No+JF0uxxG+JNRHnevfSt/ 6ajz9xbtzQKnYgiGBrEMD0ExiZ4Fer8gbQuIGXBWvrXYbb0dPMoK/sSI5gHaGrnwNXlpU4 dwG1il0AEudxIah0LGTNsUFEi5vEcoM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683298586; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=krHbfuOB6gw+eUGqN+LB4O6QZsmSbOCbjrkqdYDJ1rU=; b=z/HikY75MLhDBWa39AG/9VDsCvD6DEpqDTI9L4cgdZxBfpJRPAfn7/IOzcX661d4h4+8Iz w89nNMPHWsrZisAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id ACACE13513 for ; Fri, 5 May 2023 14:56:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8P1DKRoZVWTXAQAAMHmgww (envelope-from ) for ; Fri, 05 May 2023 14:56:26 +0000 From: Martin Doucha To: ltp@lists.linux.it Date: Fri, 5 May 2023 16:56:24 +0200 Message-Id: <20230505145626.2537-1-mdoucha@suse.cz> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-5.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 1/3] ipc/semget05: Fix .save_restore flags X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" The test can run without root privileges. Add TST_SR_SKIP_RO to ignore read-only permissions on /proc/sys/kernel/sem. Signed-off-by: Martin Doucha --- testcases/kernel/syscalls/ipc/semget/semget05.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/ipc/semget/semget05.c b/testcases/kernel/syscalls/ipc/semget/semget05.c index 38b0fad3c..d6810c11b 100644 --- a/testcases/kernel/syscalls/ipc/semget/semget05.c +++ b/testcases/kernel/syscalls/ipc/semget/semget05.c @@ -73,7 +73,8 @@ static struct tst_test test = { .cleanup = cleanup, .test_all = verify_semget, .save_restore = (const struct tst_path_val[]){ - {"/proc/sys/kernel/sem", NULL, TST_SR_TCONF}, + {"/proc/sys/kernel/sem", NULL, + TST_SR_TCONF_MISSING | TST_SR_SKIP_RO}, {} } }; -- 2.40.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp