summaryrefslogtreecommitdiff
path: root/tests/misc/date-f.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-04-22 21:35:23 +0100
committerPádraig Brady <P@draigBrady.com>2023-04-24 11:46:28 +0100
commit7ea7c020e844687eec15fc4749760bb29dee541a (patch)
tree10ed48b1948e5cbd844a193d8dab0d98b1e5d3fa /tests/misc/date-f.sh
parent82e1750daa3d002717234d8b37d21bdefbf826f4 (diff)
downloadcoreutils-7ea7c020e844687eec15fc4749760bb29dee541a.tar.gz
tests: ensure all utilities that read input diagnose errors
* tests/misc/read-errors.sh: Add a new test. * tests/misc/date-f.sh: Remove unneeded test. * tests/misc/dircolors.sh: Likewise. * tests/local.mk: Reference new test, and dereference removed ones.
Diffstat (limited to 'tests/misc/date-f.sh')
-rwxr-xr-xtests/misc/date-f.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/misc/date-f.sh b/tests/misc/date-f.sh
deleted file mode 100755
index ebbb95652..000000000
--- a/tests/misc/date-f.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-# Verify -f processing
-
-# Copyright (C) 2023 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# 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 <https://www.gnu.org/licenses/>.
-
-. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
-print_ver_ date
-
-# Make sure date fails when it can't read input
-# (the current directory in this case)
-if ! cat . >/dev/null; then
- # can't read() directories
- returns_ 1 date -f . || fail=1
-fi
-
-Exit $fail