tests: Require base 10 for the string specifying the number of open fd's
authorBryce Harrington <bryce@osg.samsung.com>
Sat, 9 Jul 2016 02:00:20 +0000 (19:00 -0700)
committerBryce Harrington <bryce@osg.samsung.com>
Mon, 11 Jul 2016 20:32:15 +0000 (13:32 -0700)
commit1cda73f3f85514ef18f180d350e1e390ff388f10
treec1e2ee5c2f50a51cdbb6fb64b00846f56f2a8bb8
parentd6d7dab487a8acd02c1fae45eea78954411c51b8
tests: Require base 10 for the string specifying the number of open fd's

The third arg to strtol() specifies the base to assume for the number.
When 0 is passed, as is currently done in wayland-client.c, hexadecimal
and octal numbers are permitted and automatically detected and
converted.

exec-fd-leak-checker's single argument is the count of file descriptors
it should expect to be open.  We should expect this to be specified only
as a decimal number, there's no reason why one would want to use octal
or hexadecimal for that.

Suggested by Yong Bakos.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
tests/exec-fd-leak-checker.c