Bug 1351309 - Look for hypot in libm instead of libc in function-definition.js. r=arai
authorPetr Sumbera <petr.sumbera@oracle.com>
Tue, 28 Mar 2017 07:03:59 -0700
changeset 350864 f6d49bf5f7e7ca559487ac65b3249c372edee7d7
parent 350863 c53813ecc303f5e1f269e81428d177de2804d6ba
child 350865 56ef6e6757d478aff96101c335c0ed7a279987a6
push id39961
push userarchaeopteryx@coole-files.de
push dateSun, 02 Apr 2017 16:54:14 +0000
treeherderautoland@6ba6c3b75587 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1351309
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1351309 - Look for hypot in libm instead of libc in function-definition.js. r=arai
js/src/jit-test/tests/ctypes/function-definition.js
--- a/js/src/jit-test/tests/ctypes/function-definition.js
+++ b/js/src/jit-test/tests/ctypes/function-definition.js
@@ -22,17 +22,17 @@ function test() {
                          "return type cannot be an array or function (got ctypes.int32_t.array())");
   assertTypeErrorMessage(() => { ctypes.FunctionType(ctypes.default_abi, ctypes.FunctionType(ctypes.default_abi, ctypes.int32_t, []), []); },
                          "return type cannot be an array or function (got ctypes.FunctionType(ctypes.default_abi, ctypes.int32_t))");
   assertTypeErrorMessage(() => { ctypes.FunctionType(ctypes.default_abi, ctypes.StructType("a"), []); },
                          "return type must have defined size (got ctypes.StructType(\"a\"))");
 
   let lib;
   try {
-    lib = ctypes.open(ctypes.libraryName("c"));
+    lib = ctypes.open(ctypes.libraryName("m"));
   } catch (e) {
   }
   if (!lib)
     return;
 
   let func = lib.declare("hypot",
                          ctypes.default_abi,
                          ctypes.double,