diff options
author | Alan Somers <asomers@FreeBSD.org> | 2017-02-23 16:54:30 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2017-02-23 16:54:30 +0000 |
commit | 65244d585f70073ccd79ecd3b3b7ce2ac65b085c (patch) | |
tree | a349d567401253e974446ecb197a2a669d7d95bc /sys/dev/xen | |
parent | 041377941aa3978bf9d4b8baa1b7b8ff7fa6be1c (diff) | |
download | src-65244d585f70073ccd79ecd3b3b7ce2ac65b085c.tar.gz src-65244d585f70073ccd79ecd3b3b7ce2ac65b085c.zip |
Fix the xnb(4) unit tests
One test was inadvertently expecting a bug in the kernel's sscanf
implementation circa 2012. I don't know when that bug got fixed.
Reported by: royger
Reviewed by: royger
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9766
Notes
Notes:
svn path=/head/; revision=314150
Diffstat (limited to 'sys/dev/xen')
-rw-r--r-- | sys/dev/xen/netback/netback_unit_tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/xen/netback/netback_unit_tests.c b/sys/dev/xen/netback/netback_unit_tests.c index 4eea4b375fd9..79e7454879e6 100644 --- a/sys/dev/xen/netback/netback_unit_tests.c +++ b/sys/dev/xen/netback/netback_unit_tests.c @@ -2528,7 +2528,7 @@ xnb_sscanf_hhn(char *buffer, size_t buflen) XNB_ASSERT(sscanf(mystr, "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" "202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f" - "404142434445464748494a4b4c4d4e4f%hhn", &dest[4]) == 1); + "404142434445464748494a4b4c4d4e4f%hhn", &dest[4]) == 0); for (i = 0; i < 12; i++) XNB_ASSERT(dest[i] == (i == 4 ? 160 : 'X')); } |