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 2298CC433F5 for ; Thu, 3 Feb 2022 12:35:48 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 3D7993C70EC for ; Thu, 3 Feb 2022 13:35:46 +0100 (CET) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 10C1C3C70EC for ; Thu, 3 Feb 2022 13:35:26 +0100 (CET) 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-2.smtp.seeweb.it (Postfix) with ESMTPS id 53CCE600D94 for ; Thu, 3 Feb 2022 13:35:26 +0100 (CET) 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 E153321128; Thu, 3 Feb 2022 12:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1643891725; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nbYf7sfvqC44j8PzDD0h3zfnekqaGQw4d1jmf11y9j4=; b=s1wOw0TSISXHHxh6BXE6KcmhrUU43+/7EGHzKZCE68IQIo6OS6PKn4/ea8/dhVCvKL+EpM 3NG5giJndOzQURjXOIv3owy1VigtXTFAT/2btPsDxH7EvSpCg6CYL+AAaWsctP25MOJOeW lLghvQyXclwW5q0+qlixqhTDPm1RBDs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1643891725; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nbYf7sfvqC44j8PzDD0h3zfnekqaGQw4d1jmf11y9j4=; b=/Ufs8IsGGZNIQ1sxgh1ECpAJg2jdtEM0czSnlVQ/dTyo0IAeC2874OTviHd9P/fD71DZsK joYQ5u8vrh/8YsDQ== 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 BAEA31348D; Thu, 3 Feb 2022 12:35:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SGi1Kw3M+2GkGwAAMHmgww (envelope-from ); Thu, 03 Feb 2022 12:35:25 +0000 From: Andrea Cervesato To: ltp@lists.linux.it Date: Thu, 3 Feb 2022 13:35:22 +0100 Message-Id: <20220203123522.28604-6-andrea.cervesato@suse.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203123522.28604-1-andrea.cervesato@suse.de> References: <20220203123522.28604-1-andrea.cervesato@suse.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v1 5/5] Remove obsolete mountns_helper.h 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" mountns_helper.h has been replaced by common.h file. Signed-off-by: Andrea Cervesato --- .../containers/mountns/mountns_helper.h | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 testcases/kernel/containers/mountns/mountns_helper.h diff --git a/testcases/kernel/containers/mountns/mountns_helper.h b/testcases/kernel/containers/mountns/mountns_helper.h deleted file mode 100644 index 4b4538eb8..000000000 --- a/testcases/kernel/containers/mountns/mountns_helper.h +++ /dev/null @@ -1,61 +0,0 @@ -/* Copyright (c) 2014 Red Hat, Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of version 2 the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "libclone.h" -#include "test.h" -#include "safe_macros.h" - -#define DIRA "A" -#define DIRB "B" - -static int dummy_child(void *v) -{ - (void) v; - return 0; -} - -static int check_newns(void) -{ - int pid, status; - - if (tst_kvercmp(2, 4, 19) < 0) - tst_brkm(TCONF, NULL, "CLONE_NEWNS not supported"); - - pid = do_clone_unshare_test(T_CLONE, CLONE_NEWNS, dummy_child, NULL); - if (pid == -1) - tst_brkm(TCONF | TERRNO, NULL, "CLONE_NEWNS not supported"); - SAFE_WAIT(NULL, &status); - - return 0; -} - -static void cleanup(void) -{ - umount(DIRA); - umount(DIRB); - tst_rmdir(); -} - -static void setup(void) -{ - tst_require_root(); - check_newns(); - tst_tmpdir(); - TST_CHECKPOINT_INIT(tst_rmdir); - SAFE_MKDIR(cleanup, DIRA, 0777); - SAFE_MKDIR(cleanup, DIRB, 0777); - SAFE_TOUCH(cleanup, DIRA"/A", 0, NULL); - SAFE_TOUCH(cleanup, DIRB"/B", 0, NULL); -} -- 2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp