-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test cases to restore original configurations after fixing AOT…
…/JIT tail-call implementation errors
- Loading branch information
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
33 changes: 18 additions & 15 deletions
33
tests/wamr-test-suites/spec-test-script/gc_nuttx_tail_call.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,56 @@ | ||
diff --git a/test/core/return_call.wast b/test/core/return_call.wast | ||
index ad66acca..b27af19b 100644 | ||
index 8a3d7512..5a4eba68 100644 | ||
--- a/test/core/return_call.wast | ||
+++ b/test/core/return_call.wast | ||
@@ -102,20 +102,20 @@ | ||
|
||
@@ -103,22 +103,22 @@ | ||
(assert_return (invoke "count" (i64.const 0)) (i64.const 0)) | ||
(assert_return (invoke "count" (i64.const 1000)) (i64.const 0)) | ||
(;Return to the original configuration after we have corrected the error in the AOT/JIT tail-call implementation.;) | ||
-(assert_return (invoke "count" (i64.const 100_000)) (i64.const 0)) | ||
+(assert_return (invoke "count" (i64.const 1001)) (i64.const 0)) | ||
+(assert_return (invoke "count" (i64.const 1_001)) (i64.const 0)) | ||
|
||
(assert_return (invoke "even" (i64.const 0)) (i32.const 44)) | ||
(assert_return (invoke "even" (i64.const 1)) (i32.const 99)) | ||
(assert_return (invoke "even" (i64.const 100)) (i32.const 44)) | ||
(assert_return (invoke "even" (i64.const 77)) (i32.const 99)) | ||
(;Return to the original configuration after we have corrected the error in the AOT/JIT tail-call implementation.;) | ||
-(assert_return (invoke "even" (i64.const 100_000)) (i32.const 44)) | ||
-(assert_return (invoke "even" (i64.const 100_001)) (i32.const 99)) | ||
+(assert_return (invoke "even" (i64.const 1000)) (i32.const 44)) | ||
+(assert_return (invoke "even" (i64.const 1001)) (i32.const 99)) | ||
+(assert_return (invoke "even" (i64.const 1_000)) (i32.const 44)) | ||
+(assert_return (invoke "even" (i64.const 1_001)) (i32.const 99)) | ||
(assert_return (invoke "odd" (i64.const 0)) (i32.const 99)) | ||
(assert_return (invoke "odd" (i64.const 1)) (i32.const 44)) | ||
(assert_return (invoke "odd" (i64.const 200)) (i32.const 99)) | ||
(assert_return (invoke "odd" (i64.const 77)) (i32.const 44)) | ||
(;Return to the original configuration after we have corrected the error in the AOT/JIT tail-call implementation.;) | ||
-(assert_return (invoke "odd" (i64.const 100_000)) (i32.const 99)) | ||
-(assert_return (invoke "odd" (i64.const 99_999)) (i32.const 44)) | ||
+(assert_return (invoke "odd" (i64.const 1000)) (i32.const 99)) | ||
+(assert_return (invoke "odd" (i64.const 999)) (i32.const 44)) | ||
-(assert_return (invoke "odd" (i64.const 99_999)) (i32.const 44)) | ||
+(assert_return (invoke "odd" (i64.const 1_000)) (i32.const 99)) | ||
+(assert_return (invoke "odd" (i64.const 999)) (i32.const 44)) | ||
|
||
|
||
;; Invalid typing | ||
diff --git a/test/core/return_call_indirect.wast b/test/core/return_call_indirect.wast | ||
index 6b95c24b..a9e86d42 100644 | ||
index 7f68b4a5..08a31417 100644 | ||
--- a/test/core/return_call_indirect.wast | ||
+++ b/test/core/return_call_indirect.wast | ||
@@ -257,14 +257,14 @@ | ||
@@ -257,15 +257,15 @@ | ||
(assert_return (invoke "even" (i32.const 1)) (i32.const 99)) | ||
(assert_return (invoke "even" (i32.const 100)) (i32.const 44)) | ||
(assert_return (invoke "even" (i32.const 77)) (i32.const 99)) | ||
-(assert_return (invoke "even" (i32.const 100_000)) (i32.const 44)) | ||
-(assert_return (invoke "even" (i32.const 111_111)) (i32.const 99)) | ||
+(assert_return (invoke "even" (i32.const 1000)) (i32.const 44)) | ||
+(assert_return (invoke "even" (i32.const 1111)) (i32.const 99)) | ||
+(assert_return (invoke "even" (i32.const 1_000)) (i32.const 44)) | ||
+(assert_return (invoke "even" (i32.const 1_001)) (i32.const 99)) | ||
(assert_return (invoke "odd" (i32.const 0)) (i32.const 99)) | ||
(assert_return (invoke "odd" (i32.const 1)) (i32.const 44)) | ||
(assert_return (invoke "odd" (i32.const 200)) (i32.const 99)) | ||
(assert_return (invoke "odd" (i32.const 77)) (i32.const 44)) | ||
(;Return to the original configuration after we have corrected the error in the AOT/JIT tail-call implementation.;) | ||
-(assert_return (invoke "odd" (i32.const 100_002)) (i32.const 99)) | ||
-(assert_return (invoke "odd" (i32.const 100_003)) (i32.const 44)) | ||
+(assert_return (invoke "odd" (i32.const 1002)) (i32.const 99)) | ||
+(assert_return (invoke "odd" (i32.const 1003)) (i32.const 44)) | ||
+(assert_return (invoke "odd" (i32.const 1_002)) (i32.const 99)) | ||
+(assert_return (invoke "odd" (i32.const 1_003)) (i32.const 44)) | ||
|
||
|
||
;; Invalid syntax |