Clean path before checking if valid.

This commit is contained in:
Belac Darkstorm
2022-10-24 03:17:55 -05:00
parent 327781d86e
commit a015b16293
3 changed files with 55 additions and 40 deletions
+15
View File
@@ -57,6 +57,21 @@ func preTest(dir string) (fil *os.File, err error) {
return
}
func TestMisc(t *testing.T) {
tmpDir := "testing"
fil, err := preTest(tmpDir)
if err != nil {
t.Fatal(err)
}
rdr, err := squashfs.NewReader(fil)
if err != nil {
t.Fatal(err)
}
_ = rdr
// Put testing here
t.Fatal("UM")
}
func BenchmarkRace(b *testing.B) {
// tmpDir := b.TempDir()
tmpDir := "testing"