MIPS: run tst-mode-switch-{1,2,3}.c using test-skeleton.c
commit0cdaef4dac5a885af9848e158e77cc347ee781bb
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 27 Jun 2016 14:45:45 +0000 (27 16:45 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 27 Jun 2016 21:57:40 +0000 (27 23:57 +0200)
tree0b991e0eb1fb11fd9fcdd8abd1c276ad807a9010
parent30dcf959d2ab76f0bc8b5bc147c35319a6a2ba08
MIPS: run tst-mode-switch-{1,2,3}.c using test-skeleton.c

For some reasons I have not investigated yet, tst-mode-switch-1 hangs on
a MIPS UTM-8 machine running an o32 userland and a 3.6.1 kernel.

This patch changes the test so that it runs under the test-skeleton
framework, causing the test to fail after a timeout instead of hanging
the whole testsuite. At the same time, also change the tst-mode-switch-2
and tst-mode-switch-3 tests.

Changelog:
* sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
 Include test-skeleton.c.
* sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
* sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
ChangeLog
sysdeps/mips/tst-mode-switch-1.c
sysdeps/mips/tst-mode-switch-2.c
sysdeps/mips/tst-mode-switch-3.c