main: clean up tests

- Explicitly list all test cases. This makes it possible to store
    tests in testdata/ that aren't tested on all platforms.
  - Clean up filesystem and env test, by running them in a subtest and
    deduplicating some code and removing the additionalArgs parameter.
This commit is contained in:
Ayke van Laethem
2021-04-06 13:34:58 +02:00
committed by Ron Evans
parent 7bac93aab3
commit 0ffe5ac2fa
5 changed files with 57 additions and 44 deletions
View File
View File
+1 -1
View File
@@ -11,7 +11,7 @@ func main() {
panic("should be non exist error")
}
f, err := os.Open("testdata/libc/filesystem.txt")
f, err := os.Open("testdata/filesystem.txt")
if err != nil {
panic(err)
}