Files
nodejs11/skip_test_on_lowmem.patch
Adam Majer 35742eb32a - Initial release of NodeJS 11.0.0
- Notable changes since NodeJS 10.12.0:
  * Use of process.binding() has been deprecated.
  * An experimental implementation of queueMicrotask() is added.
  * child_process: The default value of the windowsHide option
    has been changed to true.
  * deps: V8 has been updated to 7.0.
  * fs:
    + fs.read() method now requires a callback
    + The previously deprecated fs.SyncWriteStream utility has
      been removed
  * http: The http, https, and tls modules now use the WHATWG URL
    parser by default.
  * timers: nextTick queue will be run after each immediate and timer.
  * util:
    + WHATWG TextEncoder and TextDecoder are now globals.
    + util.inspect() output size is limited to 128 MB by default.
    + A runtime warning will be emitted when NODE_DEBUG is set for
      either http or http2.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs11?expand=0&rev=1
2018-10-25 14:40:03 +00:00

24 lines
807 B
Diff

Index: node-git.96a986d675/test/sequential/test-buffer-creation-regression.js
===================================================================
--- node-git.96a986d675.orig/test/sequential/test-buffer-creation-regression.js
+++ node-git.96a986d675/test/sequential/test-buffer-creation-regression.js
@@ -2,6 +2,7 @@
const common = require('../common');
const assert = require('assert');
+const os = require('os');
function test(arrayBuffer, offset, length) {
const uint8Array = new Uint8Array(arrayBuffer, offset, length);
@@ -25,6 +26,10 @@ const offset = 4294967296; /* 1 << 32 */
const size = offset + length;
let arrayBuffer;
+if (os.totalmem()/(1<<30) < 7) {
+ common.skip('Skipping test on low-memory build machine');
+}
+
try {
arrayBuffer = new ArrayBuffer(size);
} catch (e) {