diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-23 00:52:53 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-23 00:52:53 +0000 |
commit | 8a6d15e59c27ea14166d56c14eee2e1c9dec75dd (patch) | |
tree | 01e5598384546edd14643db54da1611354b99599 /regress | |
parent | 354390dfdf2fa16da6251569424302bbd3b0de8e (diff) |
print out the bad values when the test fails
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libpthread/preemption_float/preemption_float.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libpthread/preemption_float/preemption_float.c b/regress/lib/libpthread/preemption_float/preemption_float.c index b91ca4b8c71..6cd7cec2467 100644 --- a/regress/lib/libpthread/preemption_float/preemption_float.c +++ b/regress/lib/libpthread/preemption_float/preemption_float.c @@ -1,4 +1,4 @@ -/* $OpenBSD: preemption_float.c,v 1.2 2002/06/23 20:21:22 marc Exp $ */ +/* $OpenBSD: preemption_float.c,v 1.3 2003/01/23 00:52:52 marc Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -62,6 +62,7 @@ void *log_loop (void *x) { d = sin(d); /* if (d2 != d1) { */ if (memcmp (&d2, &d1, 8)) { + printf("log loop: %f != %f\n", d1, d2); pthread_exit(&float_failed); } } @@ -86,6 +87,7 @@ void *trig_loop (void *x) { d = sin(d); /* if (d2 != d1) { */ if (memcmp (&d2, &d1, 8)) { + printf("trig loop: %f != %f\n", d1, d2); pthread_exit(&float_failed); } } |