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

Re: [PATCH 1/2 v2] t/test-lib.sh: add test_external and test_external_without_stderr

From
OMOlivier Marin <dkr+ml.git@free.fr>
Date
Jun 18, 2008, 20:24 UTC
Message-ID
<48596EE7.90202@free.fr>
In-Reply-To
<d94c2a62edfdec22c32ef5d9649078430b30ecfd.1213685306.git.LeWiemann@gmail.com>
Hi,
Lea Wiemann a écrit :
Show 9 quoted lines
> +# Like test_external, but in addition tests that the command generated
> +# no output on stderr.
> +test_external_without_stderr () {
> +	# The temporary file has no (and must have no) security
> +	# implications.
> +	tmp="$TMPDIR"; if [ -z "$tmp" ]; then tmp=/tmp; fi
> +	stderr="$tmp/git-external-stderr.$$.tmp"
> +	test_external "$@" 4> "$stderr"
> +	[ -f "$stderr" ] || eror "Internal error: $stderr disappeared."
Just a typo here: s/eror/error/
Olivier.
Previous: Olivier MarinNext: Lea Wiemann
Message 7 of 13 in “t/test-lib.sh: add test_external and test_external_without_stderr”
  1. 1/2 t/test-lib.sh: add test_external and test_external_without_stderrLea Wiemann, Jun 17, 2008
  2. 2/2 Git.pm: add test suiteLea Wiemann, Jun 17, 2008
  3. Junio C HamanoJun 18, 2008
  4. Lea WiemannJun 18, 2008
  5. Junio C HamanoJun 18, 2008
  6. Olivier MarinJun 18, 2008
  7. Olivier MarinJun 18, 2008
  8. 1/2 t/test-lib.sh: add test_external and test_external_without_stderrLea Wiemann, Jun 19, 2008
  9. 2/2 Git.pm: add test suiteLea Wiemann, Jun 19, 2008
  10. 2/2 Git.pm: add test suiteLea Wiemann, Jun 19, 2008
  11. Jakub NarebskiJun 19, 2008
  12. Lea WiemannJun 19, 2008
  13. Junio C HamanoJun 19, 2008

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.