summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorart <>2002-02-18 11:24:13 +0000
committerart <>2002-02-18 11:24:13 +0000
commit069e3aa5df9326c8cf6aa954d4424abf262f1f2c (patch)
treeda7c4eaa695a17a42f18e3f591c1868827186a85 /src
parent4d9f43fe58441f274978bd37f319b3c63bd308d3 (diff)
downloadopenbsd-069e3aa5df9326c8cf6aa954d4424abf262f1f2c.tar.gz
openbsd-069e3aa5df9326c8cf6aa954d4424abf262f1f2c.tar.bz2
openbsd-069e3aa5df9326c8cf6aa954d4424abf262f1f2c.zip
Return a failure if the test fails don't just fall out from main().
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/ieeefp/inf/inf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/regress/lib/libc/ieeefp/inf/inf.c b/src/regress/lib/libc/ieeefp/inf/inf.c
index 32f6c2ce80..b6116b0df1 100644
--- a/src/regress/lib/libc/ieeefp/inf/inf.c
+++ b/src/regress/lib/libc/ieeefp/inf/inf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inf.c,v 1.1 2002/02/16 17:22:16 pvalchev Exp $ */ 1/* $OpenBSD: inf.c,v 1.2 2002/02/18 11:24:13 art Exp $ */
2 2
3/* 3/*
4 * Peter Valchev <pvalchev@openbsd.org> Public Domain, 2002. 4 * Peter Valchev <pvalchev@openbsd.org> Public Domain, 2002.
@@ -7,7 +7,10 @@
7#include <math.h> 7#include <math.h>
8 8
9int 9int
10main() { 10main()
11{
11 if (isinf(HUGE_VAL)) 12 if (isinf(HUGE_VAL))
12 return 0; 13 return 0;
14
15 return 1;
13} 16}