[Toybox] acpi.test, Ifconfig.test fixes

2014-12-01 Thread Cynt Rynt
Hi, Attached is a patch that adds a first stab at a testsuite for the acpi utility, and a patch that fixes some of the issues with the ifconfig testsuite. 1. Changed the context again... I tried running the tests on aboriginal Linux, but it said there was no ip command, nor modprobe, which are

Re: [Toybox] What does the du.c patch do?

2014-12-01 Thread Ashwini Sharma
Hi Rob, My patch was +// is recursive tree +static int is_recursive_loop(struct dirtree *node) +{ + struct dirtree *tmp = node; + + while ((tmp = tmp-parent)) { +if ((tmp-st.st_ino == node-st.st_ino) +(tmp-st.st_dev == node-st.st_dev)) + return 1; + } + return 0; +} + //

Re: [Toybox] What does the du.c patch do?

2014-12-01 Thread Rob Landley
On 12/01/14 05:40, Ashwini Sharma wrote: Hi Rob, ... $ du -L sub without my patch it will keep looping. This patch stops from this looping. Thanks, Ashwini Ah, you're fixing the -L case. (I'd mentally written that off as pilot error, but I see Ubuntu's du implementation doesn't loop.)

Re: [Toybox] expr horizontal lines in extended description?

2014-12-01 Thread Rob Landley
Clarification received from The Austin Group. (Unfortunately the PDF he mentions costs $2500, and is thus completely irrelevant in 2014.) On 12/01/14 09:46, Geoff Clare wrote: Rob Landley r...@landley.net wrote, on 29 Nov 2014: In