Skip to content
Commit 1cda73f3 authored by Bryce Harrington's avatar Bryce Harrington
Browse files

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: default avatarBryce Harrington <bryce@osg.samsung.com>
Reviewed-by: default avatarYong Bakos <ybakos@humanoriented.com>
parent d6d7dab4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment