diff options
author | Kerin Millar <kfm@plushkava.net> | 2023-02-13 23:02:49 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-14 00:08:13 +0000 |
commit | 26d09671f8994d7e1ac43d743f77a1f10e8d92c9 (patch) | |
tree | cb9d5e6eb25f69933e60d28d5ed3d499110b5031 /test-functions | |
parent | Have is_older_than() check the argument count and guard against errexit (diff) | |
download | gentoo-functions-26d09671f8994d7e1ac43d743f77a1f10e8d92c9.tar.gz gentoo-functions-26d09671f8994d7e1ac43d743f77a1f10e8d92c9.tar.bz2 gentoo-functions-26d09671f8994d7e1ac43d743f77a1f10e8d92c9.zip |
test-functions: Also test is_older_than with just one argument
Signed-off-by: Kerin Millar <kfm@plushkava.net>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'test-functions')
-rwxr-xr-x | test-functions | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test-functions b/test-functions index df838f7..2c1fa67 100755 --- a/test-functions +++ b/test-functions @@ -27,6 +27,10 @@ cleanup_tmpdir() { test_is_older_than() { set -- \ 1 N/A N/A \ + 1 newer N/A \ + 1 newer-empty N/A \ + 1 newer/file N/A \ + 1 non-existent N/A \ 0 newer newer \ 1 newer newer-empty \ 0 newer newer/file \ |