Skip to content

TestReadInt fails on s390x (big-endian) #61

@QuLogic

Description

@QuLogic

Tests used to pass on 1.0.11, but fail in 1.0.12:

github.com/charlievieth/fastwalk/internal/dirent
--- FAIL: TestReadInt (0.00s)
    --- FAIL: TestReadInt/1 (0.00s)
        endian_test.go:24: readInt("\x7f\x00\x00\x00\x00\x00\x00\x00", 0, 1) = 127, true want: 9151314442816847872, true
    --- FAIL: TestReadInt/2 (0.00s)
        endian_test.go:24: readInt("\x7f\xff\x00\x00\x00\x00\x00\x00", 0, 2) = 32767, true want: 9223090561878065152, true
    --- FAIL: TestReadInt/4 (0.00s)
        endian_test.go:24: readInt("\x7f\xff\xff\xff\x00\x00\x00\x00", 0, 4) = 2147483647, true want: 9223372032559808512, true
FAIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions