mirror of https://github.com/mattn/go-sqlite3.git
Merge pull request #641 from akalin/fix-test-call
Actually check the value of RunTests
This commit is contained in:
commit
e85a2792f3
|
@ -1731,7 +1731,10 @@ func TestSuite(t *testing.T) {
|
||||||
defer d.Close()
|
defer d.Close()
|
||||||
|
|
||||||
db = &TestDB{t, d, SQLITE, sync.Once{}}
|
db = &TestDB{t, d, SQLITE, sync.Once{}}
|
||||||
testing.RunTests(func(string, string) (bool, error) { return true, nil }, tests)
|
ok := testing.RunTests(func(string, string) (bool, error) { return true, nil }, tests)
|
||||||
|
if !ok {
|
||||||
|
t.Fatal("A subtest failed")
|
||||||
|
}
|
||||||
|
|
||||||
if !testing.Short() {
|
if !testing.Short() {
|
||||||
for _, b := range benchmarks {
|
for _, b := range benchmarks {
|
||||||
|
|
Loading…
Reference in New Issue