]> granicus.if.org Git - strace/commit
tests: move kernel uid overflow check to libtests
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Apr 2016 22:38:17 +0000 (22:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Apr 2016 01:10:41 +0000 (01:10 +0000)
commitc1f1cc1b4c03a0199de270354a09851a46a07857
tree7c609e5da27ede3250b5cc357d254c8fbd9c6138
parent9c1a72cd3f3d52d573876ce474b620a5f141fb1b
tests: move kernel uid overflow check to libtests

This code used in two different places, so move it to the library.

* tests/overflowuid.c: New file.
* tests/Makefile.am (libtests_a_SOURCES): Add it.
* tests/tests.h (check_overflowuid, check_overflowgid): New prototypes.
* tests/uid.c (main): Use check_overflowuid.
* tests/uid16.c (main): Likewise.
tests/Makefile.am
tests/overflowuid.c [new file with mode: 0644]
tests/tests.h
tests/uid.c
tests/uid16.c