test- keep jars in the temp dir

This commit is contained in:
sridharv
2016-03-27 19:55:17 +02:00
parent 327d3f573c
commit b7b4d886f1

View File

@ -14,7 +14,7 @@ func TestJavaBind(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
jar := filepath.Join("/tmp", "gojavatest.jar") jar := filepath.Join(tmpDir, "gojavatest.jar")
if err := createJar(jar, if err := createJar(jar,
"github.com/sridharv/gomobile-java/bind/testpkg", "github.com/sridharv/gomobile-java/bind/testpkg",
"github.com/sridharv/gomobile-java/bind/testpkg/secondpkg", "github.com/sridharv/gomobile-java/bind/testpkg/secondpkg",