From 58c15aa680b51cf76a3523c349dd23af3b066baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 3 May 2021 21:31:58 +0100 Subject: [PATCH] testdata: scope GODEBUG to a single test case I've tripped over this GODEBUG env var four or five times already. Since it affects any Go program by making them print tons of runtime information, it also affects "go env", breaking garble horribly. To prevent further issues, unset the env var when done. --- testdata/scripts/tiny.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testdata/scripts/tiny.txt b/testdata/scripts/tiny.txt index 103dce2..b43e46c 100644 --- a/testdata/scripts/tiny.txt +++ b/testdata/scripts/tiny.txt @@ -12,6 +12,9 @@ stderr '^caller: \?\? 1$' # position info is removed stderr '^recovered: ya like jazz?' ! stderr 'panic: oh noes' # panics are hidden +# Ensure further commands don't have weirdness due to GODEBUG. +env GODEBUG='' + [short] stop # no need to verify this with -short # Default mode