Displaying 2 results from an estimated 2 matches for "sscanferror".
2013 Jun 09
2
[PATCH 1/1] tests: Fix sscanf test where width = 1 and integer is negative
sscanf can take an integer which specifies the maximum field width.
In this test, the field width is 1 and the input is a negative number so
the test fails.
This patch increases the maximum field width to 2.
Signed-off-by: Mike Pagano <mpagano at gentoo.org>
---
usr/klibc/tests/sscanf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/klibc/tests/sscanf.c
2013 Aug 20
0
[PATCH 1/1] tests: Fix sscanf test where width = 1 and integer is negative
...> the test fails.
>
> This patch increases the maximum field width to 2.
thanks, but can you post the failure you are seeing?
The one I see is related to the double fields that klibc
can't probably shouldn't handle, hence maybe those tests should
be disabled:
./usr/klibc/tests/sscanfError wrong sscanf double return 0.
Error wrong sscanf double return 0.
Error wrong sscanf double return 0.
--
maks