mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Disable tests that don't pass on FreeBSD due to missing support in
humanize_number(3). Bringing in additional revisions from NetBSD's humanize_number(3) will fix the tests Account for the fact that util.h on NetBSD is libutil.h on FreeBSD Submitted by: pho Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
5f8ad2bd82
commit
6cf117d780
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272901
@ -34,7 +34,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <libutil.h>
|
||||
#else
|
||||
#include <util.h>
|
||||
#endif
|
||||
|
||||
const struct hnopts {
|
||||
size_t ho_len;
|
||||
@ -78,6 +82,7 @@ const struct hnopts {
|
||||
/*
|
||||
* Truncated output. Rev. 1.7 produces "1.0 K".
|
||||
*/
|
||||
#if !defined(__FreeBSD__)
|
||||
{ 6, 1000, "A", HN_AUTOSCALE, HN_DECIMAL, -1, "" },
|
||||
|
||||
/*
|
||||
@ -90,6 +95,7 @@ const struct hnopts {
|
||||
/* Similar case it prints 1000 where it shouldn't */
|
||||
{ 5, 1023488, "",
|
||||
HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL, 4, "1.0M" },
|
||||
#endif
|
||||
{ 5, 1023999, "",
|
||||
HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL, 4, "1.0M" },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user