Bug 1135401 - Do not run js1_8_5/extensions/file-mapped-arraybuffers.js test if memory mapped array buffer is not supported. r=sfink

This commit is contained in:
Tooru Fujisawa 2015-02-25 05:47:01 +09:00
parent 193771a104
commit 572c09a712
2 changed files with 14 additions and 1 deletions

View File

@ -183,6 +183,18 @@ GetBuildConfiguration(JSContext *cx, unsigned argc, jsval *vp)
if (!JS_SetProperty(cx, info, "intl-api", value))
return false;
#if defined(XP_WIN)
value = BooleanValue(false);
#elif defined(SOLARIS)
value = BooleanValue(false);
#elif defined(XP_UNIX)
value = BooleanValue(true);
#else
value = BooleanValue(false);
#endif
if (!JS_SetProperty(cx, info, "mapped-array-buffer", value))
return false;
args.rval().setObject(*info);
return true;
}

View File

@ -36,5 +36,6 @@ function test() {
assertThrows(() => createMappedArrayBuffer("empty.txt", 0, 8), Error);
}
test();
if (getBuildConfiguration()["mapped-array-buffer"])
test();
reportCompare(0, 0, 'ok');