delve/_fixtures/buildtest/main_test.go
Alessandro Arzilli 1ef8c40ccf
cmd/dlv: subcommand 'dlv test' should switch to package directory (#2128)
Match 'go test' behaviour and switch to package directory, unless one
is specified with the '--wd' option.

Fixes #2125
2020-08-31 10:51:10 -07:00

16 lines
196 B
Go

package main
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
os.Exit(m.Run())
}
func TestCurrentDirectory(t *testing.T) {
wd, _ := os.Getwd()
t.Logf("current directory: %s", wd)
}