diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-24 23:40:18 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-24 23:40:18 +0800 |
commit | 1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1 (patch) | |
tree | f7b957645b11bc19ecf7fb29baaa13530557af7a /Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go | |
parent | 92ef33d97a437dce2d7b55f06342de388d95f575 (diff) | |
download | go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.gz go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.bz2 go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.lz go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.xz go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.zst go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.zip |
Godeps: remove mist remnants, add termui deps
Diffstat (limited to 'Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go')
-rw-r--r-- | Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go b/Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go deleted file mode 100644 index e7c3f33c5..000000000 --- a/Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package cdata - -import ( - "runtime" - "sync" - "testing" -) - -type refPair struct { - ref1, ref2 uintptr -} - -func TestRef(t *testing.T) { - const N = 10 - runtime.LockOSThread() - exit := sync.WaitGroup{} - exit.Add(1) - defer exit.Done() - wg := sync.WaitGroup{} - wg.Add(N) - ch := make(chan refPair) - for i := 0; i < N; i++ { - go func() { - runtime.LockOSThread() - wg.Done() - ch <- refPair{Ref(), Ref()} - exit.Wait() - }() - } - wg.Wait() - refs := make(map[uintptr]bool) - for i := 0; i < N; i++ { - pair := <-ch - if pair.ref1 != pair.ref2 { - t.Fatalf("found inconsistent ref: %d != %d", pair.ref1, pair.ref2) - } - if refs[pair.ref1] { - t.Fatalf("found duplicated ref: %d", pair.ref1) - } - refs[pair.ref1] = true - } -} |