summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-18 11:24:14 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-18 11:24:14 +0000
commit1e894858df4a132c3f6af027ea1ff5c721ddf4f3 (patch)
tree181f576fa67b0be79aace0adaeb151e6bdfe1931 /regress
parent6e85d91208f6175b76251d2a487336bbca0d56f5 (diff)
Return a failure if the test fails don't just fall out from main().
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libc/ieeefp/inf/inf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/regress/lib/libc/ieeefp/inf/inf.c b/regress/lib/libc/ieeefp/inf/inf.c
index 32f6c2ce807..b6116b0df1f 100644
--- a/regress/lib/libc/ieeefp/inf/inf.c
+++ b/regress/lib/libc/ieeefp/inf/inf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inf.c,v 1.1 2002/02/16 17:22:16 pvalchev Exp $ */
+/* $OpenBSD: inf.c,v 1.2 2002/02/18 11:24:13 art Exp $ */
/*
* Peter Valchev <pvalchev@openbsd.org> Public Domain, 2002.
@@ -7,7 +7,10 @@
#include <math.h>
int
-main() {
+main()
+{
if (isinf(HUGE_VAL))
return 0;
+
+ return 1;
}