mirror of https://github.com/golang/go.git
cmd/go: add test for allowing output in non-existent directory
This commit is contained in:
parent
e5f6a86f05
commit
a293eaa8c6
|
|
@ -18,6 +18,22 @@ go build -o myprog x.go
|
|||
exists -exec myprog
|
||||
! exists myprogr.exe
|
||||
|
||||
! exists bin
|
||||
go build -o bin/x x.go
|
||||
exists -exec bin/x
|
||||
rm bin
|
||||
|
||||
! exists bin
|
||||
go build -o bin/ x.go
|
||||
exists -exec bin/x
|
||||
rm bin
|
||||
|
||||
! exists bin
|
||||
mkdir bin
|
||||
go build -o bin x.go
|
||||
exists -exec bin/x
|
||||
rm bin
|
||||
|
||||
go build p.go
|
||||
! exists p
|
||||
! exists p.a
|
||||
|
|
|
|||
Loading…
Reference in New Issue