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

Re: Expected test suite behavior

From
Junio C Hamano <gitster@pobox.com>
Date
May 26, 2026, 01:11 UTC
Message-ID
<xmqqa4tnnfds.fsf@gitster.g>
In-Reply-To
<ahTsTDhVPkHTEbB_@fruit.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 5 quoted lines
> I think I know what the problem is: you're running as root.  I suspect
> `test -x` in the test says that you have permission to execute it
> because you're root and root always ignores permissions.  My guess is
> that most of the tests you're failing have to do with permissions of
> some sort that are being ignored because you're privileged.

I know !SANITY defeats a-rw and lets the tester read or write to the path, but this is the first time I heard that !SANITY defeats a-x and lets the tester _execute_ it.

I do not think we drop POSIXPERM prereq when !SANITY automatically, and I do not think we should, but we should probably have an automated check to drop POSIXPERM?

    (
	# is an unexecutable look to the user as executable?
	umask 0; >testfile; chmod a-w testfile; test -x testfile;
	status=$?;
	rm -f testfile; exit $status
    )
Show 5 quoted lines
> I'll just note that if you just want to do Git development, macOS is a
> fully supported platform on which to do that.  I will admit most of the
> major contributors (with the notable exception of the Git for Windows
> maintainer) do use Linux and of course I like and endorse Debian, but
> macOS should build and run just fine if you prefer that.
Hear hear.

We want to encourage developers to do more _native_ development on their own system, and this is not limited to macOS. As long as users on a particular platform rely on working Git there, we are better off if we have more people actively using that platform to build, test, develop on, and debug Git for their own use.

Thanks.
Previous: brian m. carlson
Message 7 of 7 in “Re: Expected test suite behavior”
  1. Michael MontalboMay 25, 2026
  2. Jeff KingMay 25, 2026
  3. Amogh DambalMay 25, 2026
  4. brian m. carlsonMay 25, 2026
  5. Amogh DambalMay 25, 2026
  6. brian m. carlsonMay 26, 2026
  7. Junio C HamanoMay 26, 2026

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.