summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2024-08-06 02:21:53 +0100
committerSam James <sam@gentoo.org>2024-08-11 11:10:53 +0100
commit52f551e5a01ab030c131c2e7f196a8a76235583d (patch)
treef75ab8e5f8865fcb1a19cca116e9a75ab1a45356
parenttest-functions: try to test a locale whose radix character isn't U+2E (diff)
downloadgentoo-functions-52f551e5a01ab030c131c2e7f196a8a76235583d.tar.gz
gentoo-functions-52f551e5a01ab030c131c2e7f196a8a76235583d.tar.bz2
gentoo-functions-52f551e5a01ab030c131c2e7f196a8a76235583d.zip
test_functions: check that genfun_time is greater than -1
After all, it is never expected to be negative. Signed-off_by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xtest-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-functions b/test-functions
index b9fe3f0..940f07d 100755
--- a/test-functions
+++ b/test-functions
@@ -905,7 +905,7 @@ test_update_time() {
fi
case $? in
0)
- is_int "${genfun_time}"
+ is_int "${genfun_time}" && test "${genfun_time}" -ge 0
;;
2)
# Unsupported for the platform and therefore untestable.