git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: t5539 broken under Mac OS X

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 14, 2015, 19:50 UTC
Message-ID
<54B6C897.5030405@web.de>
In-Reply-To
<xmqqmw5l9pje.fsf@gitster.dls.corp.google.com>
On 2015-01-14 19.37, Junio C Hamano wrote:
Show 29 quoted lines
> Torsten Bögershausen <tboegi@web.de> writes:
> 
>> t5539 doesn't seem to work as expected under Mac OX X 10.6
>> (10.9 is OK)
>>
>> I am not root.
>> Are there any ideas how we can improve the situation, or how to debug ?
> 
> As to "how to debug", the first step is to grep for that message and
> notice that it comes from here:
> 
> t/lib-httpd.sh:
> 
>     if ! test_have_prereq SANITY; then
>             test_skip_or_die $GIT_TEST_HTTPD \
>                     "Cannot run httpd tests as root"
>     fi
> 
> and then grep for SANITY to find:
> 
> t/test-lib.sh:
> 
>     # When the tests are run as root, permission tests will report that
>     # things are writable when they shouldn't be.
>     test -w / || test_set_prereq SANITY
> 
> It appears that the check in lib-httpd.sh thinks you lack SANITY; is
> the root directory of your system somehow writable by you?
> 

Yes, that was a good hint, thanks. The "problem" is that I am Admin on one machine, but not on the other, and / was writable for the admin group for some reasons, and only on this machine.

But, why does e.g. t0004 behave more gracefully (and skips) and t5539 just dies ?

./t0004-unwritable.sh ok 1 - setup ok 2 # skip write-tree should notice unwritable repository (missing SANITY of POSIXPERM,SANITY)

(And after changing the group of / t5539 passes, and so does t0004)
Previous: Junio C HamanoNext: Jeff King
Message 3 of 33 in “t5539 broken under Mac OS X”
  1. Torsten BögershausenJan 14, 2015
  2. Junio C HamanoJan 14, 2015
  3. Torsten BögershausenJan 14, 2015
  4. Jeff KingJan 14, 2015
  5. Kyle J. McKayJan 15, 2015
  6. Junio C HamanoJan 15, 2015
  7. Jeff KingJan 15, 2015
  8. Junio C HamanoJan 15, 2015
  9. Jeff KingJan 15, 2015
  10. Junio C HamanoJan 16, 2015
  11. t/lib-httpd: switch SANITY check for NOT_ROOTJeff King, Jan 16, 2015
  12. Kyle J. McKayJan 16, 2015
  13. Jeff KingJan 16, 2015
  14. Jeff KingJan 16, 2015
  15. Junio C HamanoJan 16, 2015
  16. Junio C HamanoJan 16, 2015
  17. Torsten BögershausenJan 17, 2015
  18. Junio C HamanoJan 21, 2015
  19. Torsten BögershausenJan 22, 2015
  20. Junio C HamanoJan 22, 2015
  21. Torsten BögershausenJan 23, 2015
  22. Junio C HamanoFeb 12, 2015
  23. Torsten BögershausenFeb 14, 2015
  24. Junio C HamanoFeb 15, 2015
  25. Torsten BögershausenJan 23, 2015
  26. Junio C HamanoJan 23, 2015
  27. Johannes SchindelinJan 24, 2015
  28. Kyle J. McKayJan 16, 2015
  29. Kyle J. McKayJan 16, 2015
  30. Achim GratzJan 16, 2015
  31. Erik Faye-LundJan 27, 2015
  32. Junio C HamanoJan 27, 2015
  33. Erik Faye-LundJan 27, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.