With Go 1.13+ one shall not call flag.Parse() in init
Testing in: /builddir/build/BUILD/lexer-e92e62e6ff2ca3fbfa05edf504fede744b99936b/_build/src
PATH: /builddir/build/BUILD/lexer-e92e62e6ff2ca3fbfa05edf504fede744b99936b/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
GOPATH: /builddir/build/BUILD/lexer-e92e62e6ff2ca3fbfa05edf504fede744b99936b/_build:/usr/share/gocode
GO111MODULE: off
command: go test -buildmode pie -compiler gc -ldflags "-X modernc.org/lexer/version.commit=e92e62e6ff2ca3fbfa05edf504fede744b99936b -X modernc.org/lexer/version=1.0.0 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
testing: modernc.org/lexer
modernc.org/lexer
flag provided but not defined: -test.timeout
Usage of /tmp/go-build156000088/b001/lexer.test:
-dev
enable dev tests/utils/helpers
-re string
regexp for some of the dev tests (default "re")
exit status 2
FAIL modernc.org/lexer 0.008s
See https://github.com/golang/go/issues/31859#issuecomment-489889428 for a workaround.