diff options
author | 2002-02-18 11:24:13 +0000 | |
---|---|---|
committer | 2002-02-18 11:24:13 +0000 | |
commit | 938548da83ec2ad39f1902aae78ec79f672e6f90 (patch) | |
tree | 6bde30b884f96a80141bbe84faddb1e972c7c411 | |
parent | clean (diff) | |
download | wireguard-openbsd-938548da83ec2ad39f1902aae78ec79f672e6f90.tar.xz wireguard-openbsd-938548da83ec2ad39f1902aae78ec79f672e6f90.zip |
Return a failure if the test fails don't just fall out from main().
-rw-r--r-- | regress/lib/libc/ieeefp/inf/inf.c | 7 |
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; } |