File skip_test_on_lowmem.patch of Package nodejs8
24
1
Index: node-git.96a986d675/test/sequential/test-buffer-creation-regression.js
2
===================================================================
3
--- node-git.96a986d675.orig/test/sequential/test-buffer-creation-regression.js
4
+++ node-git.96a986d675/test/sequential/test-buffer-creation-regression.js
5
6
7
const common = require('../common');
8
const assert = require('assert');
9
+const os = require('os');
10
11
function test(arrayBuffer, offset, length) {
12
const uint8Array = new Uint8Array(arrayBuffer, offset, length);
13
14
const size = offset + length;
15
let arrayBuffer;
16
17
+if (os.totalmem()/(1<<30) < 7) {
18
+ common.skip('Skipping test on low-memory build machine');
19
+}
20
+
21
try {
22
arrayBuffer = new ArrayBuffer(size);
23
} catch (e) {
24