]> granicus.if.org Git - strace/commit
tests: fix uid tests on big endian architectures
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Mar 2015 01:13:47 +0000 (01:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Mar 2015 02:23:55 +0000 (02:23 +0000)
commit3a15bc8adf3031b474a81e1c672c11817c8ee8f0
tree6bf47edbc7a34c7574cd4127997a0ffd47c85203
parenta8dcf253fac7c951febc67c832a47e039d50aedc
tests: fix uid tests on big endian architectures

* tests/uid.c (main): Ignore uids returned by getresuid to avoid
16bit vs 32bit issues on big endian architectures.
Change real UID instead of effective UID in setresuid test.
* tests/uid16.c (main): Likewise.
* tests/uid32.c (main): Change real UID instead of effective UID
in setresuid test to match uid.c
* tests/uid.awk: Update setresuid regexp.

Reported-by: Mike Frysinger <vapier@gentoo.org>
tests/uid.awk
tests/uid.c
tests/uid16.c
tests/uid32.c