]> git.ipfire.org Git - thirdparty/glibc.git/commit
MIPS: run tst-mode-switch-{1,2,3}.c using test-skeleton.c
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 27 Jun 2016 14:45:45 +0000 (16:45 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 27 Jun 2016 21:59:43 +0000 (23:59 +0200)
commitcacad9315ebcf5a0c067950500cc7c31b442af22
tree60c3894c494af72fc72c1c4520b22289969e46e9
parentd16e36e575b7ac0c4ab74f43c9a752c631b943c9
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.

(cherry picked from commit 0cdaef4dac5a885af9848e158e77cc347ee781bb)
ChangeLog
sysdeps/mips/tst-mode-switch-1.c
sysdeps/mips/tst-mode-switch-2.c
sysdeps/mips/tst-mode-switch-3.c