]> git.kaiwu.me - njs.git/commitdiff
Fixed unit tests for SunC.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 13 Nov 2018 11:16:54 +0000 (14:16 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 13 Nov 2018 11:16:54 +0000 (14:16 +0300)
njs/test/njs_unit_test.c

index f43e962f428923c66ca4dd0771b49b76fbe98299..e0b81cfe8d090d0d508777b1a42ec23b4bdd8555 100644 (file)
@@ -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") },