go-errors / errors

errors with stacktraces for go
https://godoc.org/github.com/go-errors/errors
MIT License
921 stars 93 forks source link

`go test` fails on Windows #11

Closed techtonik closed 4 years ago

techtonik commented 8 years ago
E:\go\src\github.com\go-errors\errors>go version
go version go1.6.2 windows/386
E:\go\src\github.com\go-errors\errors>go test
--- FAIL: TestStackFormatMatches (0.00s)
    error_test.go:26: Stack didn't match
    error_test.go:27:   TestStackFormatMatches.func1: bs := [][]byte{Errorf("hi").Stack(), debug.Stack()}
        C:/Program Files/Go/src/runtime/asm_386.s:488 (0x44ca9a)
            call16: CALLFN(·call16, 16)
        C:/Program Files/Go/src/runtime/panic.go:443 (0x428a6d)
            gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
        E:/go/src/github.com/go-errors/errors/error_test.go:237 (0x473a4f)
            c: panic('a')
        E:/go/src/github.com/go-errors/errors/error_test.go:233 (0x4739f7)
            b: c()
        E:/go/src/github.com/go-errors/errors/error_test.go:228 (0x4739cb)
            a: b(5)
        E:/go/src/github.com/go-errors/errors/error_test.go:32 (0x47230c)
            TestStackFormatMatches: a()
        C:/Program Files/Go/src/testing/testing.go:473 (0x4697ff)
            tRunner: test.F(t)
        C:/Program Files/Go/src/runtime/asm_386.s:1585 (0x44e881)
            goexit: BYTE    $0x90   // NOP
    error_test.go:28: runtime/debug.Stack(0x0, 0x0, 0x0)
            C:/Program Files/Go/src/runtime/debug/stack.go:24 +0x80
        github.com/go-errors/errors.TestStackFormatMatches.func1(0x10d32120)
            E:/go/src/github.com/go-errors/errors/error_test.go:19 +0xdb
        panic(0x50a1c0, 0x10d021c8)
            C:/Program Files/Go/src/runtime/panic.go:443 +0x3fd
        github.com/go-errors/errors.c()
            E:/go/src/github.com/go-errors/errors/error_test.go:237 +0x4f
        github.com/go-errors/errors.b(0x5)
            E:/go/src/github.com/go-errors/errors/error_test.go:233 +0x17
        github.com/go-errors/errors.a(0x0, 0x0)
            E:/go/src/github.com/go-errors/errors/error_test.go:228 +0x2b
        github.com/go-errors/errors.TestStackFormatMatches(0x10d32120)
            E:/go/src/github.com/go-errors/errors/error_test.go:32 +0x3c
        testing.tRunner(0x10d32120, 0x5fb4c0)
            C:/Program Files/Go/src/testing/testing.go:473 +0x8f
        created by testing.RunTests
            C:/Program Files/Go/src/testing/testing.go:582 +0x6f2
--- FAIL: TestSkipWorks (0.00s)
    error_test.go:49: Stack didn't match
    error_test.go:50: C:/Program Files/Go/src/runtime/panic.go:443 (0x428a6d)
            gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
        E:/go/src/github.com/go-errors/errors/error_test.go:237 (0x473a4f)
            c: panic('a')
        E:/go/src/github.com/go-errors/errors/error_test.go:233 (0x4739f7)
            b: c()
        E:/go/src/github.com/go-errors/errors/error_test.go:228 (0x4739cb)
            a: b(5)
        E:/go/src/github.com/go-errors/errors/error_test.go:55 (0x47236c)
            TestSkipWorks: a()
        C:/Program Files/Go/src/testing/testing.go:473 (0x4697ff)
            tRunner: test.F(t)
        C:/Program Files/Go/src/runtime/asm_386.s:1585 (0x44e881)
            goexit: BYTE    $0x90   // NOP
    error_test.go:51:   E:/go/src/github.com/go-errors/errors/error_test.go:43 +0xfd
        panic(0x50a1c0, 0x10d02400)
            C:/Program Files/Go/src/runtime/panic.go:443 +0x3fd
        github.com/go-errors/errors.c()
            E:/go/src/github.com/go-errors/errors/error_test.go:237 +0x4f
        github.com/go-errors/errors.b(0x5)
            E:/go/src/github.com/go-errors/errors/error_test.go:233 +0x17
        github.com/go-errors/errors.a(0x0, 0x0)
            E:/go/src/github.com/go-errors/errors/error_test.go:228 +0x2b
        github.com/go-errors/errors.TestSkipWorks(0x10d327e0)
            E:/go/src/github.com/go-errors/errors/error_test.go:55 +0x3c
        testing.tRunner(0x10d327e0, 0x5fb4cc)
            C:/Program Files/Go/src/testing/testing.go:473 +0x8f
        created by testing.RunTests
            C:/Program Files/Go/src/testing/testing.go:582 +0x6f2
--- FAIL: TestNew (0.00s)
    error_test.go:79: Stack didn't match
    error_test.go:80:   TestNew: bs := [][]byte{New("foo").Stack(), debug.Stack()}
        C:/Program Files/Go/src/testing/testing.go:473 (0x4697ff)
            tRunner: test.F(t)
        C:/Program Files/Go/src/runtime/asm_386.s:1585 (0x44e881)
            goexit: BYTE    $0x90   // NOP
    error_test.go:81: runtime/debug.Stack(0x0, 0x0, 0x0)
            C:/Program Files/Go/src/runtime/debug/stack.go:24 +0x80
        github.com/go-errors/errors.TestNew(0x10d32e40)
            E:/go/src/github.com/go-errors/errors/error_test.go:72 +0x209
        testing.tRunner(0x10d32e40, 0x5fb4d8)
            C:/Program Files/Go/src/testing/testing.go:473 +0x8f
        created by testing.RunTests
            C:/Program Files/Go/src/testing/testing.go:582 +0x6f2
prefix: hi
FAIL
exit status 1
FAIL    github.com/go-errors/errors 0.056s
titouanfreville commented 4 years ago

No news on outdated go version. Fell free to open it again if it happens again.