summaryrefslogtreecommitdiff
path: root/stdlib/testrand.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/testrand.c')
-rw-r--r--stdlib/testrand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/testrand.c b/stdlib/testrand.c
index b66dca9899..b31082eda9 100644
--- a/stdlib/testrand.c
+++ b/stdlib/testrand.c
@@ -34,6 +34,9 @@ DEFUN_VOID(main)
srand (1);
j1 = rand();
j2 = rand();
+ if (i1 < 0 || i2 < 0 || j1 < 0 || j2 < 0) {
+ puts ("Test FAILED!");
+ }
if (j1 == i1 && j2 == i2)
{
puts ("Test succeeded.");