Skip to content

Commit

Permalink
Xfail first dejagnu test to work around emscripten cache messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jan 27, 2023
1 parent f675b83 commit 7361f29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testsuite/libffi.bhaible/bhaible.exp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,21 @@ if { ![string match $compiler_vendor "microsoft"] && ![string match $compiler_ve

set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/test-call.c]]


# Hack around https://github.com/emscripten-core/emscripten/issues/18607
set should_xfail_emscripten_firsttest false
proc check_effective_target_emscripten_firsttest { } {
global should_xfail_emscripten_firsttest
return $should_xfail_emscripten_firsttest
}

proc set_emscripten_firsttest { i } {
global should_xfail_emscripten_firsttest
set should_xfail_emscripten_firsttest [ expr { $i == 1 && [ istarget "wasm32-*-*" ] } ]
}

for {set i 1} {$i < 82} {incr i} {
set_emscripten_firsttest $i
run-many-tests $tlist [format "-DDGTEST=%d %s" $i $warning_options]
}

Expand Down
3 changes: 3 additions & 0 deletions testsuite/libffi.bhaible/test-call.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
**/

// Hack around https://github.com/emscripten-core/emscripten/issues/18607
// See handling code in bhaible.exp
/* { dg-do run { xfail emscripten_firsttest } } */
/* { dg-do run { xfail gccbug } } */

#include <stdio.h>
Expand Down

0 comments on commit 7361f29

Please sign in to comment.