aboutsummaryrefslogtreecommitdiffstats
path: root/common/compiler
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-08-06 22:19:09 +0800
committerFelix Lange <fjl@twurst.com>2015-08-06 23:18:59 +0800
commit383201996463ddb91aa754f81d00d472e3436380 (patch)
treef9f32bd48949b85a14594f57a01de528d8695e02 /common/compiler
parenteae1191904fd739cdffdd2903509a44a35c4c2f2 (diff)
downloadgo-tangerine-383201996463ddb91aa754f81d00d472e3436380.tar
go-tangerine-383201996463ddb91aa754f81d00d472e3436380.tar.gz
go-tangerine-383201996463ddb91aa754f81d00d472e3436380.tar.bz2
go-tangerine-383201996463ddb91aa754f81d00d472e3436380.tar.lz
go-tangerine-383201996463ddb91aa754f81d00d472e3436380.tar.xz
go-tangerine-383201996463ddb91aa754f81d00d472e3436380.tar.zst
go-tangerine-383201996463ddb91aa754f81d00d472e3436380.zip
common/compiler, common/docserver, jsre: fix tests on windows
Diffstat (limited to 'common/compiler')
-rw-r--r--common/compiler/solidity_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/compiler/solidity_test.go b/common/compiler/solidity_test.go
index 8255e8e2d..3303bc15a 100644
--- a/common/compiler/solidity_test.go
+++ b/common/compiler/solidity_test.go
@@ -20,6 +20,7 @@ import (
"encoding/json"
"io/ioutil"
"os"
+ "path"
"testing"
"github.com/ethereum/go-ethereum/common"
@@ -94,7 +95,7 @@ func TestSaveInfo(t *testing.T) {
if err != nil {
t.Errorf("%v", err)
}
- filename := "/tmp/solctest.info.json"
+ filename := path.Join(os.TempDir(), "solctest.info.json")
os.Remove(filename)
cinfohash, err := SaveInfo(&cinfo, filename)
if err != nil {
@@ -110,4 +111,4 @@ func TestSaveInfo(t *testing.T) {
if cinfohash != infohash {
t.Errorf("content hash for info is incorrect. expected %v, got %v", infohash.Hex(), cinfohash.Hex())
}
-}
+} \ No newline at end of file