Skip to content

Commit 26728cb

Browse files
authored
Remove unnecessary ret value control when spec test is enabled (#1839)
wamr-test-suites scripts can handle the return value correctly when spec test is enabled.
1 parent 679a8ab commit 26728cb

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

product-mini/platforms/linux-sgx/enclave-sample/App/App.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -796,12 +796,7 @@ main(int argc, char *argv[])
796796
/* Destroy runtime environment */
797797
destroy_runtime();
798798

799-
#if WASM_ENABLE_SPEC_TEST != 0
800-
(void)ret;
801-
return 0;
802-
#else
803799
return ret;
804-
#endif
805800
}
806801

807802
int

product-mini/platforms/posix/main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -696,10 +696,5 @@ main(int argc, char *argv[])
696696
/* destroy runtime environment */
697697
wasm_runtime_destroy();
698698

699-
#if WASM_ENABLE_SPEC_TEST != 0
700-
(void)ret;
701-
return 0;
702-
#else
703699
return ret;
704-
#endif
705700
}

product-mini/platforms/windows/main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,5 @@ main(int argc, char *argv[])
496496
/* destroy runtime environment */
497497
wasm_runtime_destroy();
498498

499-
#if WASM_ENABLE_SPEC_TEST != 0
500-
(void)ret;
501-
return 0;
502-
#else
503499
return ret;
504-
#endif
505500
}

0 commit comments

Comments
 (0)