commit:     4c6cc2b2ad15acc3a2be7b60b10c42c47b53e1bf
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 12 06:31:11 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 12 06:41:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c6cc2b2

app-misc/delay: add smoketests in src_test

No official test suite available so let's add some quick smoketests which
would've caught the segfault mentioned in bug #881319.

Bug: https://bugs.gentoo.org/881319
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/delay/delay-1.6-r6.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/app-misc/delay/delay-1.6-r6.ebuild 
b/app-misc/delay/delay-1.6-r6.ebuild
index 056c0f45b6a2..bab9eb2ea719 100644
--- a/app-misc/delay/delay-1.6-r6.ebuild
+++ b/app-misc/delay/delay-1.6-r6.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools
+inherit autotools edo
 
 DESCRIPTION="Sleeplike program that counts down the number of seconds 
specified"
 HOMEPAGE="https://onegeek.org/~tom/software/delay/";
@@ -41,3 +41,10 @@ src_configure() {
 
        econf
 }
+
+src_test() {
+       # No provided test suite, so let's add a smoketest which would've
+       # caught the segfault part of bug #881319.
+       edo ./delay 5
+       edo ./delay until now + 1 minutes
+}

Reply via email to