[njs] Fixed unit tests for SunC.
Sergey Kandaurov
pluknet at nginx.com
Tue Nov 13 11:17:29 UTC 2018
details: http://hg.nginx.org/njs/rev/19a9743c00c8
branches:
changeset: 650:19a9743c00c8
user: Sergey Kandaurov <pluknet at nginx.com>
date: Tue Nov 13 14:16:54 2018 +0300
description:
Fixed unit tests for SunC.
diffstat:
njs/test/njs_unit_test.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 81d029f4139c -r 19a9743c00c8 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c Mon Nov 12 20:08:36 2018 +0300
+++ b/njs/test/njs_unit_test.c Tue Nov 13 14:16:54 2018 +0300
@@ -9071,8 +9071,10 @@ static njs_unit_test_t njs_test[] =
{ nxt_string("Math.sinh(-Infinity)"),
nxt_string("-Infinity") },
+#ifndef __SUNPRO_C /* Sun C 5.15: round error */
{ nxt_string("Math.sinh(1) - (Math.E - 1/Math.E)/2"),
nxt_string("0") },
+#endif
{ nxt_string("Math.sqrt()"),
nxt_string("NaN") },
More information about the nginx-devel
mailing list