From 25a6a28602f7ccd25544debe9ebafe5db8f543ce Mon Sep 17 00:00:00 2001 From: Frederick Akalin Date: Sat, 22 Sep 2018 11:19:09 -0700 Subject: [PATCH 1/2] Actually check the value of RunTests --- sqlite3_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sqlite3_test.go b/sqlite3_test.go index bfed0278..a91381a2 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -1731,7 +1731,10 @@ func TestSuite(t *testing.T) { defer d.Close() 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.Fail() + } if !testing.Short() { for _, b := range benchmarks { From 3955886e389312bbf6e6a96572440f3eb58e2f23 Mon Sep 17 00:00:00 2001 From: Frederick Akalin Date: Sat, 22 Sep 2018 11:50:52 -0700 Subject: [PATCH 2/2] Add fatal message --- sqlite3_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3_test.go b/sqlite3_test.go index a91381a2..b295ddd0 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -1733,7 +1733,7 @@ func TestSuite(t *testing.T) { db = &TestDB{t, d, SQLITE, sync.Once{}} ok := testing.RunTests(func(string, string) (bool, error) { return true, nil }, tests) if !ok { - t.Fail() + t.Fatal("A subtest failed") } if !testing.Short() {