From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 8B6773854802 for ; Thu, 4 Mar 2021 16:17:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8B6773854802 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-562-EzJUm2SEM8iqB0UIVZkxKw-1; Thu, 04 Mar 2021 11:17:49 -0500 X-MC-Unique: EzJUm2SEM8iqB0UIVZkxKw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 65597760C0; Thu, 4 Mar 2021 16:17:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 350916A036; Thu, 4 Mar 2021 16:17:48 +0000 (UTC) Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A844F4BB40; Thu, 4 Mar 2021 16:17:47 +0000 (UTC) Date: Thu, 4 Mar 2021 11:17:47 -0500 (EST) From: Arjun Shankar To: Lukasz Majewski Cc: Joseph Myers , Adhemerval Zanella , Florian Weimer , DJ Delorie , GNU C Library , Florian Weimer , Alistair Francis Message-ID: <35562645.32965585.1614874667382.JavaMail.zimbra@redhat.com> In-Reply-To: <20210225003509.7151-1-lukma@denx.de> References: <20210225003509.7151-1-lukma@denx.de> Subject: Re: [PATCH] tst: Add test for utime MIME-Version: 1.0 X-Originating-IP: [10.40.193.106, 10.4.195.21] Thread-Topic: Add test for utime Thread-Index: hLQWQTYa2vs5Bl4n1Si7iews9cz/NA== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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-List-Received-Date: Thu, 04 Mar 2021 16:17:54 -0000 Hi Lukasz, > This patch provides test for utime. It uses xfstat() syscall to read > access and modification times to compare with ones written by utime. > > Moreover, access and modification times beyond the Y2038 threshold > date (i.e. 32 bit time_t overflow) are also checked. It seems that this and the utimes/futimens tests fail on machines where /tmp is XFS, where they run into a y2038 bug [1]. I am wondering if there's a way around this, like maybe using a loop mount inside a container? I don't know if that's possible/easy using the container tests infrastructure, but it is the first thing that comes to my mind. Cheers, Arjun [1] https://bugzilla.redhat.com/show_bug.cgi?id=1795576