From 91c98bad15b3379de576070b8e25c389639b0b12 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 21 May 2019 11:22:49 +0200 Subject: [PATCH] lucet seems to accept sizes without a suffix --- test/default/wasi-test-wrapper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index bcb16a82..d5f0dd41 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -1,6 +1,6 @@ #! /bin/sh -MAX_MEMORY_TESTS_MB="64" +MAX_MEMORY_TESTS="67108864" if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmtime" ]; then if command -v wasmtime >/dev/null; then @@ -11,9 +11,9 @@ fi if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then lucetc-wasi \ - --reserved-size "${MAX_MEMORY_TESTS_MB}MiB" \ + --reserved-size "${MAX_MEMORY_TESTS}" \ -o "${1}.so" --opt-level best "$1" && - lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS_MB}MiB" "${1}.so" && + lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS}" "${1}.so" && rm -f "${1}.so" && exit 0 fi fi