internal/build:switch workdir from testpkg like go behavior
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestZoo(t *testing.T) {
|
||||
if Zoo() != 3 {
|
||||
@@ -11,3 +14,10 @@ func TestZoo(t *testing.T) {
|
||||
func TestFalse(t *testing.T) {
|
||||
// t.Fatal("false")
|
||||
}
|
||||
|
||||
func TestSwitchWd(t *testing.T) {
|
||||
_, err := os.Stat("./foo")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user