From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2012) id BED833858D3C; Fri, 9 Jun 2023 14:26:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BED833858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686320780; bh=YlyGXDmqjXiFLnC7NV0xg2oR+p6hIkcmNxmtyuGp2+k=; h=From:To:Subject:Date:From; b=ATgw7RBgVv3QSt+jn4Xi6hLPxIcPqk10rwSdhWA7cDxMJda3geHSw6nvZTQf3q6d/ hoSKI2KJXgXT6fNVaTv/+KZmacLdDLkAlPrrt45Comdd7CmilWPUZ1+y51vwJfWj1W ZCUSX406HKWCcAog4090xidn4VD/kqQZ65fT27Zc= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Arjun Shankar To: glibc-cvs@sourceware.org Subject: [glibc] Remove unused DATEMSK file for tst-getdate X-Act-Checkin: glibc X-Git-Author: Martin Coufal X-Git-Refname: refs/heads/master X-Git-Oldrev: abcf8db7fa46b73fd5b8193ce11f9312301b84c7 X-Git-Newrev: 5e8d1b0328a850c229146f40e18848728b104583 Message-Id: <20230609142620.BED833858D3C@sourceware.org> Date: Fri, 9 Jun 2023 14:26:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5e8d1b0328a850c229146f40e18848728b104583 commit 5e8d1b0328a850c229146f40e18848728b104583 Author: Martin Coufal Date: Fri Jun 9 13:58:04 2023 +0200 Remove unused DATEMSK file for tst-getdate tst-getdate used to rely on an in-tree datemsk file that was subsequently replaced by a file created during test execution. This commit removes the unused file and corresponding env-var and uses a more appropriate name for the temp file. Reviewed-by: Carlos O'Donell Diff: --- time/Makefile | 1 - time/datemsk | 2 -- time/tst-getdate.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/time/Makefile b/time/Makefile index 92bc3db315..1d2e667cad 100644 --- a/time/Makefile +++ b/time/Makefile @@ -104,7 +104,6 @@ CFLAGS-mktime.c += $(config-cflags-wno-ignored-attributes) # Don't warn about Y2k problem in strftime format string. CFLAGS-test_time.c += -Wno-format -tst-getdate-ENV= DATEMSK=datemsk TZDIR=${common-objpfx}timezone/testdata test_time-ARGS= EST5EDT CST tst-tzname-ENV = TZDIR=${common-objpfx}timezone/testdata diff --git a/time/datemsk b/time/datemsk deleted file mode 100644 index 3dc4d417fe..0000000000 --- a/time/datemsk +++ /dev/null @@ -1,2 +0,0 @@ -%H:%M:%S %F -%d-%m-%Y %T diff --git a/time/tst-getdate.c b/time/tst-getdate.c index cf97e220f7..4c9ed28d58 100644 --- a/time/tst-getdate.c +++ b/time/tst-getdate.c @@ -98,7 +98,7 @@ static const char datemskstr[] = static void do_prepare (int argc, char **argv) { - int fd = create_temp_file ("tst-chk1.", &datemsk); + int fd = create_temp_file ("tst-getdate.", &datemsk); xwrite (fd, datemskstr, sizeof (datemskstr) - 1); setenv ("DATEMSK", datemsk, 1);