From patchwork Tue Mar 23 13:44:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 42744 X-Patchwork-Delegate: siddhesh@gotplt.org Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 65AE4385701F; Tue, 23 Mar 2021 13:45:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65AE4385701F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1616507106; bh=iITdU5UJRcnj5UaGXfm1d09K085aRP4WTU9wcTQvjpo=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=iTQ7dtbw0WSMqXk+jAgR7vZlxwi+kzRlqOiAfsgrNoJlyMQMg3tpB4N1oRYKymaBA nQNr7VXQxWGlI4AEcq0sT/GUnqLW3rfQaRMiMe23GwvNNCShEQZnAXcgcBInIyKZCc Z1u6uV2N1ZcWb6xEvVad/40teiBmkLw0xxa+xlyY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by sourceware.org (Postfix) with ESMTPS id ECB18385BF9E for ; Tue, 23 Mar 2021 13:45:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org ECB18385BF9E Received: by mail-qt1-x834.google.com with SMTP id g24so14880922qts.6 for ; Tue, 23 Mar 2021 06:45:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iITdU5UJRcnj5UaGXfm1d09K085aRP4WTU9wcTQvjpo=; b=McWbrGRKty0lIxteaVeXbk/bDOMWLpwx4aB+RkwKf5fMk4ZG5uGO7seRZe9+3Vkw8h DCBIqzphE5XiXnw/lCIfwTePGJp8jDKS1POOdeenEUhSYqJpMVTZRw8kh1jXYq/o8F/s veL0eUIbjJ+ur8DvjukTzgJ+uBxYQgZ9veY5r8HaH5BDmMGfLUV3lRKJD2x52XaYi8nE yy7ILPiPb6c/IPXMqFK7th8IU2gkYUcMFLUpiaqroNjg27c3LoJJ+fc3Qqwv297yT+hr HfVzlhyESaSKXDeG840diV//xIBfDbZnRHIB8G2ad1yK1cc9Wd/ySleNhl/tU+UgkvUy jqJw== X-Gm-Message-State: AOAM5339KouFBFMYffkBsG9bqPSas6xx6fSqsEj9pohkuTR2++0KFsN0 t/rgM+nuQ/FfHaoJ1mF+lakjTDBja2aR0g== X-Google-Smtp-Source: ABdhPJxW6YytukCVg3u6udgMnI0+lJvOCm+Bqa2fiHnkIzoHfspiIWonuRLtbNLPusuazn9dIA6IWw== X-Received: by 2002:ac8:4a18:: with SMTP id x24mr4328611qtq.33.1616507103384; Tue, 23 Mar 2021 06:45:03 -0700 (PDT) Received: from localhost.localdomain ([177.194.41.149]) by smtp.googlemail.com with ESMTPSA id z24sm12783384qkz.65.2021.03.23.06.45.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 06:45:03 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 01/15] io: Move file timestamps tests out of Linux Date: Tue, 23 Mar 2021 10:44:44 -0300 Message-Id: <20210323134458.2563022-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210323134458.2563022-1-adhemerval.zanella@linaro.org> References: <20210323134458.2563022-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Now that libsupport abstract Linux possible missing support (either due FS limitation that can't handle 64 bit timestamp or architectures that do not handle values larger than unsigned 32 bit values) the tests can be turned generic. Checked on x86_64-linux-gnu and i686-linux-gnu. I also built the tests for i686-gnu. Reviewed-by: Siddhesh Poyarekar --- io/Makefile | 5 ++++- {sysdeps/unix/sysv/linux => io}/tst-futimens.c | 0 {sysdeps/unix/sysv/linux => io}/tst-utime.c | 0 {sysdeps/unix/sysv/linux => io}/tst-utimensat-skeleton.c | 0 {sysdeps/unix/sysv/linux => io}/tst-utimes.c | 0 sysdeps/unix/sysv/linux/Makefile | 2 +- 6 files changed, 5 insertions(+), 2 deletions(-) rename {sysdeps/unix/sysv/linux => io}/tst-futimens.c (100%) rename {sysdeps/unix/sysv/linux => io}/tst-utime.c (100%) rename {sysdeps/unix/sysv/linux => io}/tst-utimensat-skeleton.c (100%) rename {sysdeps/unix/sysv/linux => io}/tst-utimes.c (100%) diff --git a/io/Makefile b/io/Makefile index c9919d666f..3411573cf3 100644 --- a/io/Makefile +++ b/io/Makefile @@ -68,7 +68,10 @@ tests := test-utime test-stat test-stat2 test-lfs tst-getcwd \ tst-fts tst-fts-lfs tst-open-tmpfile \ tst-copy_file_range tst-getcwd-abspath tst-lockf \ tst-ftw-lnk tst-file_change_detection tst-lchmod \ - tst-ftw-bz26353 tst-stat tst-stat-lfs + tst-ftw-bz26353 tst-stat tst-stat-lfs \ + tst-utime \ + tst-utimes \ + tst-futimens \ # Likewise for statx, but we do not need static linking here. tests-internal += tst-statx diff --git a/sysdeps/unix/sysv/linux/tst-futimens.c b/io/tst-futimens.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-futimens.c rename to io/tst-futimens.c diff --git a/sysdeps/unix/sysv/linux/tst-utime.c b/io/tst-utime.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-utime.c rename to io/tst-utime.c diff --git a/sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c b/io/tst-utimensat-skeleton.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c rename to io/tst-utimensat-skeleton.c diff --git a/sysdeps/unix/sysv/linux/tst-utimes.c b/io/tst-utimes.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-utimes.c rename to io/tst-utimes.c diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index e42bc7f13b..aa1e4e991e 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -107,7 +107,7 @@ tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \ test-errno-linux tst-memfd_create tst-mlock2 tst-pkey \ tst-rlimit-infinity tst-ofdlocks tst-gettid tst-gettid-kill \ tst-tgkill tst-sysvsem-linux tst-sysvmsg-linux tst-sysvshm-linux \ - tst-timerfd tst-ppoll tst-futimens tst-utime tst-utimes \ + tst-timerfd tst-ppoll \ tst-clock_adjtime tst-adjtimex tst-ntp_adjtime # Test for the symbol version of fcntl that was replaced in glibc 2.28.