bug-gnulib
[Top][All Lists]
Advanced

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

Re: one other coreutils test failure


From: Jim Meyering
Subject: Re: one other coreutils test failure
Date: Fri, 16 Sep 2011 18:54:32 +0200

Michael Stone wrote:
> This one was actually in gnulib; what's the best way to pursue it?
>
> FAIL: test-getcwd (exit: 16)
> ============================

Hi Michael,

Thanks for the report.
I'll Cc bug-gnulib, but to start with, note that test-getcwd.c's main
does this:

  return test_abort_bug () + test_long_name ();

and the first can return 0 or 2,3,4 or 5, while
the latter can return only two values smaller than 16:
10 and 11.

With that, we know that main's return was 5 + 11.
Thus, this chdir ".." failed:

  /* Call rmdir first, in case the above chdir failed.  */
  rmdir (dir_name);
  while (0 < d--)
    {
      if (chdir ("..") < 0)
        {
          fail = 5;
          break;
        }
      rmdir (dir_name);
    }

If you can strace it, we'll see why.  Maybe EACCES or EPERM?



reply via email to

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