go-logging icon indicating copy to clipboard operation
go-logging copied to clipboard

Test failure: TestLogCallpath incorrect callpath

Open eclipseo opened this issue 6 years ago • 2 comments

With Golang 1.12.2

Testing in: /builddir/build/BUILD/go-logging-970db520ece77730c7e4724c61121037378659d9/_build/src
      PATH: /builddir/build/BUILD/go-logging-970db520ece77730c7e4724c61121037378659d9/_build/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
    GOPATH: /builddir/build/BUILD/go-logging-970db520ece77730c7e4724c61121037378659d9/_build:/usr/share/gocode
   command: go test -buildmode pie -compiler gc -ldflags "-X github.com/op/go-logging/version=2.0.0 -X github.com/op/go-logging/version.commit=970db520ece77730c7e4724c61121037378659d9 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
   testing: github.com/op/go-logging
github.com/op/go-logging
--- FAIL: TestLogCallpath (0.00s)
    log_test.go:63: incorrect callpath: TestLogCallpath.testCallpath.rec...a.b.c.Info
    log_test.go:63: incorrect callpath: TestLogCallpath.testCallpath.rec...a.b.c.Info
    log_test.go:63: incorrect callpath: TestLogCallpath.testCallpath.rec...a.b.c.Info
    log_test.go:63: incorrect callpath: ~.Info
    log_test.go:63: incorrect callpath: ~.c.Info
    log_test.go:63: incorrect callpath: ~.b.c.Info
FAIL
exit status 1
FAIL	github.com/op/go-logging	0.008s

eclipseo avatar Apr 23 '19 05:04 eclipseo

@op We are seeing the same error with Go 1.13.8; could you please kindly take a look when you have time? This affects, for example, Fedora and Debian packaging of github.com/op/go-logging

Many thanks!

anthonyfok avatar Feb 25 '20 19:02 anthonyfok

@op seeing the same issue in golang 1.18.4; FYI.

ashoktce avatar Feb 06 '23 09:02 ashoktce