golang/go

all: ensure that tests do not write to the current directory

Open

#28.387 geöffnet am 25. Okt. 2018

Auf GitHub ansehen
 (50 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)Go (19.008 Forks)batch import
NeedsFixTestinghelp wanted

Repository-Metriken

Stars
 (133.883 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

In #27957, @hyangah noticed that the tests for compress/bzip2 fail when GOROOT is not writable, and those tests are run whenever we run go test all in module mode (which is intended to be a useful default).

As noted in #28386, tests should not assume that they can write to the current directory. We should ensure that none of the tests in the standard library make that mistake.

Contributor Guide