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?