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 <carlos@redhat.com>
This commit is contained in:
Martin Coufal 2023-06-09 13:58:04 +02:00 committed by Arjun Shankar
parent abcf8db7fa
commit 5e8d1b0328
3 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -1,2 +0,0 @@
%H:%M:%S %F
%d-%m-%Y %T

View File

@ -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);