Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
b1a9a71a
Commit
b1a9a71a
authored
May 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
77783055
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
wcfs/gogccrash
wcfs/gogccrash
+0
-1
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+7
-10
No files found.
wcfs/gogccrash
View file @
b1a9a71a
...
...
@@ -5,7 +5,6 @@ export GOTRACEBACK=crash
ulimit
-c
unlimited
go
test
-c
#export DBTail_SEED=1602769537289632682
cwd
=
$(
pwd
)
...
...
wcfs/δbtail_test.go
View file @
b1a9a71a
...
...
@@ -34,7 +34,6 @@ import (
"reflect"
"regexp"
"sort"
"strconv"
"strings"
"testing"
"time"
...
...
@@ -1541,7 +1540,10 @@ func TestΔBTail(t *testing.T) {
}
var
verylongFlag
=
flag
.
Bool
(
"verylong"
,
false
,
`switch tests to run in "very long" mode`
)
var
(
verylongFlag
=
flag
.
Bool
(
"verylong"
,
false
,
`switch tests to run in "very long" mode`
)
randseedFlag
=
flag
.
Int64
(
"randseed"
,
-
1
,
`seed for random number generator`
)
)
// TestΔBTailAllStructs verifies ΔBtail on tree topologies generated by AllStructs.
func
TestΔBTailAllStructs
(
t
*
testing
.
T
)
{
...
...
@@ -1583,14 +1585,9 @@ func TestΔBTailAllStructs(t *testing.T) {
}()
// random seed
seed
:=
time
.
Now
()
.
UnixNano
()
seeds
:=
os
.
Getenv
(
"DBTail_SEED"
)
if
seeds
!=
""
{
var
err
error
seed
,
err
=
strconv
.
ParseInt
(
seeds
,
10
,
64
)
if
err
!=
nil
{
t
.
Fatalf
(
"invalid $DBTail_SEED=%s: %s"
,
seeds
,
err
)
}
seed
:=
*
randseedFlag
if
seed
==
-
1
{
seed
=
time
.
Now
()
.
UnixNano
()
}
rng
:=
rand
.
New
(
rand
.
NewSource
(
seed
))
t
.
Logf
(
"# maxdepth=%d maxsplit=%d nkeys=%d n=%d seed=%d"
,
maxdepth
,
maxsplit
,
nkeys
,
n
,
seed
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment