From e0ef2f3443e1f7e6dd9bfdee8c576f91419f4ff3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 20 Feb 2021 06:55:35 -0800 Subject: [PATCH] test: skip wasi/test-return-on-exit if low memory Fixes: https://github.com/nodejs/node/issues/37374 --- test/wasi/test-return-on-exit.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/wasi/test-return-on-exit.js b/test/wasi/test-return-on-exit.js index 362d13b490a96f..c64c6b7d123cc6 100644 --- a/test/wasi/test-return-on-exit.js +++ b/test/wasi/test-return-on-exit.js @@ -1,6 +1,11 @@ // Flags: --experimental-wasi-unstable-preview1 'use strict'; const common = require('../common'); + +if (!common.enoughTestMem) { + common.skip('Insufficient memory'); +} + const assert = require('assert'); const fs = require('fs'); const path = require('path');