[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

findutils-git: 1 test may fail

From: Peter Breitenlohner
Subject: findutils-git: 1 test may fail
Date: Mon, 3 Aug 2009 17:44:11 +0200 (CEST)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)


one test -- test-dup2 -- recently added to the findutils test suite is
inherently broken and may fail.

The test (from gnulib) assumes that after (test-dup2.c line 68)
        int fd = open (file, O_CREAT | O_RDWR, 0600);
fd is an open file (correct), and that fd+1, fd+2 are not (wrong, that may
or may not be true).

E.g., when running the testsuite under Midnight Commander (mc), originally the 
files are 0, 1, 2, 4, 6, 8, and 255. Thus fd=3, and fd+1 is open.

Unless the test programs first closes some files, there is no guarantee that
the test does the right thing.

PLEASE: remove that test and report the problem to the gnulib maintainers.

Peter Breitenlohner <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]