I found this while testing current libvirt git on FreeBSD 8.1 32bit. When running gmake check in the libvirt source tree then ASSERT (getcwd (NULL, i) == NULL) in test-getcwd-lgpl.c in line 74 fails on the first iteration of the for loop. When runnig in gdb ./gnulib/tests/test-getcwd-lgpl in the libvirt source tree then the same ASSERT fails. Sometimes ASSERT (chdir (pwd1) == 0) in test-getcwd-lgpl.c in line 51 fails too, but I'm not able to reproduce this one reliably.
This also happens with current gnulib git head. Matthias