Skip to content
Snippets Groups Projects
Commit 7b4c1998 authored by Cheng Shao's avatar Cheng Shao :beach: Committed by Marge Bot
Browse files

testsuite: fix T17920 for wasm backend

T17920 was marked as fragile on wasm before; it can be trivially fixed
by avoiding calling variadic printf() in cmm.
parent d216510e
No related branches found
No related tags found
No related merge requests found
#include "Cmm.h"
#if !defined(UnregisterisedCompiler)
import CLOSURE msg;
#endif
section "rodata" { msg : bits8[] "Test\n"; }
section "data" { faketso : bits8[1000]; }
......@@ -8,12 +12,13 @@ stg_myExit {
}
stg_foo {
CInt _unused;
BaseReg = faketso;
SAVE_REGS();
foreign "C" printf(msg "ptr");
(_unused) = ccall puts(msg "ptr");
RESTORE_REGS();
......
......@@ -207,7 +207,7 @@ test('T16617', normal, compile_and_run, [''])
test('T16449_2', exit_code(0), compile_and_run, [''])
test('T16846', [only_ways(['optasm']), exit_code(1)], compile_and_run, [''])
test('T17920', [cmm_src, when(arch('wasm32'), fragile(22854))], compile_and_run, [''])
test('T17920', [cmm_src], compile_and_run, [''])
test('T18527', req_c, compile_and_run, ['T18527FFI.c'])
test('T19149', [req_c,only_ways('sanity')], compile_and_run, ['T19149_c.c'])
test('T20275', normal, compile_and_run, [''])
......@@ -246,4 +246,3 @@ test('T24295a', normal, compile_and_run, ['-O -floopification'])
test('T24295b', normal, compile_and_run, ['-O -floopification -fpedantic-bottoms'])
test('T24664a', normal, compile_and_run, ['-O'])
test('T24664b', normal, compile_and_run, ['-O'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment