mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
pkg/log: fix tests with -count>0
This commit is contained in:
parent
d8b0de2df3
commit
0adfdffa82
@ -7,6 +7,10 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func init() {
|
||||
EnableLogCaching(4, 20)
|
||||
}
|
||||
|
||||
func TestCaching(t *testing.T) {
|
||||
tests := []struct{ str, want string }{
|
||||
{"", ""},
|
||||
@ -20,7 +24,6 @@ func TestCaching(t *testing.T) {
|
||||
{"hhhhhhhh", "ggggggg\nhhhhhhhh\n"},
|
||||
{"jjjjjjjjjjjjjjjjjjjjjjjjj", "jjjjjjjjjjjjjjjjjjjjjjjjj\n"},
|
||||
}
|
||||
EnableLogCaching(4, 20)
|
||||
prependTime = false
|
||||
for _, test := range tests {
|
||||
Logf(1, test.str)
|
||||
|
Loading…
Reference in New Issue
Block a user