# stdio-common/bug22 hits timeout.
cd $(DIR_APP) && sed -i stdio-common/bug22.c \
-e "s/#define TIMEOUT.*/#define TIMEOUT 300/"
+
+ # These tests don't work or need more investigation:
+ cd $(DIR_APP) && sed -i dlfcn/Makefile -e "s/default //g"
+
+ cd $(DIR_APP) && sed -i nptl/Makefile \
+ -e "s/tst-mutex5 //g" \
+ -e "s/tst-mutex5a //g" \
+ -e "s/tst-cond11 //g" \
+ -e "s/tst-rwlock6 //g" \
+ -e "s/tst-rwlock7 //g" \
+ -e "s/tst-sem5 //g" \
+ -e "s/tst-cancelx4 //g" \
+ -e "s/tst-cancelx5 //g" \
+ -e "s/tst-cancelx10 //g" \
+ -e "s/tst-cancelx18 //g" \
+
+ # These are known to fail on x86:
+ cd $(DIR_APP) && sed -i rt/Makefile \
+ -e "s/tst-cpuclock1 //g" \
+ -e "s/tst-cpuclock2 //g"
+
+ cd $(DIR_APP) && sed -i elf/Makefile \
+ -e "s/tst-tls1 //g" \
+ -e "s/tst-tls1-static //g" \
+ -e "s/tst-tls2 //g" \
+ -e "s/tst-tls2-static //g" \
+ -e "s/tst-tls3 //g" \
+ -e "s/resolvfail //g" \
+ -e "s/constload1 //g" \
+ -e "s/order //g" \
+ -e "s/lateglobal //g" \
+ -e "s/dblload //g" \
+ -e "s/dblunload //g" \
+ -e "s/reldep6 //g" \
+ -e "s/circleload1 //g" \
+ -e "s/tst-global1 //g" \
+ -e "s/tst-audit2 //g" \
+ -e "s/check-localplt //g" \
+ -e "s/check-localplt.out$$//g"
+
endef
define STAGE_BUILD