From cf2d3921407917cb00d41a12ff260fe7465a3b97 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Wed, 31 Mar 2021 09:32:24 +0200 Subject: [PATCH] fix: Fix asc-constants test failing during publish (#1775) --- tests/compiler/asc-constants.ts | 7 ++++--- tests/compiler/asc-constants.untouched.wat | 9 +++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/compiler/asc-constants.ts b/tests/compiler/asc-constants.ts index 049e86b33b..0614110be0 100644 --- a/tests/compiler/asc-constants.ts +++ b/tests/compiler/asc-constants.ts @@ -17,6 +17,7 @@ ASC_FEATURE_MULTI_VALUE; ASC_FEATURE_GC; ASC_FEATURE_MEMORY64; -ASC_VERSION_MAJOR; -ASC_VERSION_MINOR; -ASC_VERSION_PATCH; +// versions vary between builds +isDefined(ASC_VERSION_MAJOR); +isDefined(ASC_VERSION_MINOR); +isDefined(ASC_VERSION_PATCH); diff --git a/tests/compiler/asc-constants.untouched.wat b/tests/compiler/asc-constants.untouched.wat index c17173ce8a..87fb3f227b 100644 --- a/tests/compiler/asc-constants.untouched.wat +++ b/tests/compiler/asc-constants.untouched.wat @@ -19,9 +19,6 @@ (global $~lib/ASC_FEATURE_MULTI_VALUE i32 (i32.const 0)) (global $~lib/ASC_FEATURE_GC i32 (i32.const 0)) (global $~lib/ASC_FEATURE_MEMORY64 i32 (i32.const 0)) - (global $~lib/ASC_VERSION_MAJOR i32 (i32.const 0)) - (global $~lib/ASC_VERSION_MINOR i32 (i32.const 0)) - (global $~lib/ASC_VERSION_PATCH i32 (i32.const 0)) (global $~lib/memory/__data_end i32 (i32.const 8)) (global $~lib/memory/__stack_pointer (mut i32) (i32.const 16392)) (global $~lib/memory/__heap_base i32 (i32.const 16392)) @@ -62,11 +59,11 @@ drop i32.const 0 drop - i32.const 0 + i32.const 1 drop - i32.const 0 + i32.const 1 drop - i32.const 0 + i32.const 1 drop ) (func $~start