Bug 4712 - du-k-works test fails
Summary: du-k-works test fails
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.19.x
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 13:20 UTC by Anders Ossowicki
Modified: 2012-01-17 13:27 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch if this is intended behaviour (725 bytes, patch)
2012-01-17 13:27 UTC, Anders Ossowicki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Ossowicki 2012-01-17 13:20:32 UTC
The du-k-works test seems to assume that du -k on a directory with two files totaling 80 kilobytes should report either 80k or 88k. In some cases however, both busybox' du -k and coreutils' du -k reports a size of 84k which causes the test to fail. I can reproduce this with the latest git HEAD, make defconfig, make, make test on ext3 and ext4 filesystems.

Build output of 1.9.3 attached.
Comment 1 Anders Ossowicki 2012-01-17 13:27:32 UTC
Created attachment 3980 [details]
Patch if this is intended behaviour

The attached patch can be applied if du reports the right size. I think it does, given that it agrees with coreutils but I'm not the right guy to make that call.