10 // A top-level temp dir that lasts for the duration of the package tests, and
11 // is removed at completion.
15 log.SetFlags(log.LstdFlags | log.Llongfile)
17 pkgTempDir, err = ioutil.TempDir("", "torrent.test")
23 func tempDir() string {
24 ret, err := ioutil.TempDir(pkgTempDir, "")
31 func TestMain(m *testing.M) {
33 os.RemoveAll(pkgTempDir)