On Mon, Sep 5, 2011 at 16:48, Paul Eggert <[email protected]> wrote:

> Hmm, in looking at the truss output more carefully,
> it appears that you're running /usr/bin/tar.
> Can you please arrange for the test to run the
> tar that you built instead?  You can do that by
> modifying the test case, replacing the two instances
> of "tar" with the full path name of the just-built
> tar command.
>

Really? Bugger! Would have sworn I put the exported PATH statement in the
test. Wait .. I did!  WTBH?

Re-running with new variable TAR set to the explicit full path to the newly
compiled gnu tar .. and changing the tar invocations to $TAR.

$ truss -f -o test-scarce-5.truss sh ./test-scarce
underlying openat (-2, "a", 2052, 0) returns 4 (OK)
underlying openat (4, "X", 2052, 0) returns 5 (OK)
underlying openat (4, "Y", 2052, 0) returns 5 (OK)
underlying openat (4, "Z", 2052, 0) returns 5 (OK)
underlying openat (4, "b", 2052, 0) returns 5 (OK)
underlying openat (5, "X", 2052, 0) returns 6 (OK)
underlying openat (5, "Y", 2052, 0) returns 6 (OK)
underlying openat (5, "Z", 2052, 0) returns 6 (OK)
underlying openat (5, "c", 2052, 0) returns 6 (OK)
underlying openat (6, "X", 2052, 0) returns 7 (OK)
underlying openat (6, "Y", 2052, 0) returns 7 (OK)
underlying openat (6, "Z", 2052, 0) returns 7 (OK)
underlying openat (6, "d", 2052, 0) returns 7 (OK)
underlying openat (7, "X", 2052, 0) returns 8 (OK)
underlying openat (7, "Y", 2052, 0) returns 8 (OK)
underlying openat (7, "Z", 2052, 0) returns 8 (OK)
underlying openat (7, "e", 2052, 0) returns 8 (OK)
underlying openat (8, "X", 2052, 0) returns 9 (OK)
underlying openat (8, "Y", 2052, 0) returns 9 (OK)
underlying openat (8, "Z", 2052, 0) returns 9 (OK)
underlying openat (8, "f", 2052, 0) returns 9 (OK)
underlying openat (-2, "..", 0, 0) returns -1 (Too many open files)
/lppdir/build/phs-gtar/tar-1.26-experimental/src/tar: unable to record
current working directory: Too many open files
diff: dest3/a: No such file or directory

Better I think ... bloody hell.

-- 
# include <stddisclaimer.h>
/* Kevin  Brott <[email protected]> */

Attachment: test-scarce-5.truss.gz
Description: GNU Zip compressed data

Reply via email to