Codebase list golang-github-boltdb-bolt / 8d4e954
Initialize test to fix flag parsing issue (Closes: #952199) Nilesh Patra 4 years ago
2 changed file(s) with 24 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Description: Initialize test so that test flags can be parsed during execution.
1 --- a/quick_test.go
2 +++ b/quick_test.go
3 @@ -8,6 +8,7 @@
4 "os"
5 "reflect"
6 "testing/quick"
7 + "testing"
8 "time"
9 )
10
11 @@ -23,6 +24,11 @@
12
13 var qcount, qseed, qmaxitems, qmaxksize, qmaxvsize int
14
15 +var testinit = func() bool {
16 + testing.Init()
17 + return true
18 +}()
19 +
20 func init() {
21 flag.IntVar(&qcount, "quick.count", 5, "")
22 flag.IntVar(&qseed, "quick.seed", int(time.Now().UnixNano())%100000, "")
00 Bug#849663_Fix_32bit_failures.patch
11 0002-Increase-write-waiting-time-when-testing.patch
22 0003-Add-support-for-mips-mips64.patch
3 0004-Fix-parsing-flags.patch