diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-07 03:39:29 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-07 03:39:29 +0800 |
commit | 698e98d9814605bfea98ba3ad2fe7fda073cb2b1 (patch) | |
tree | 729aa720f3b18b9eb901111d1d58c355bc9b744c /common/compiler | |
parent | a3b8169938953a10ab57282853768c72bebaf0b4 (diff) | |
parent | 803096ca0f262be7d03081482777c3e293f5f7ac (diff) | |
download | dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.gz dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.bz2 dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.lz dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.xz dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.zst dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.zip |
Merge pull request #1600 from ethereum/fix-tests-windows
Fix tests on windows
Diffstat (limited to 'common/compiler')
-rw-r--r-- | common/compiler/solidity_test.go | 5 |
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 |