Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failures on s390x #466

Open
eclipseo opened this issue Aug 22, 2023 · 0 comments
Open

Tests failures on s390x #466

eclipseo opened this issue Aug 22, 2023 · 0 comments

Comments

@eclipseo
Copy link

  • Golang 1.21
  • Fedora Rawhide
  • goccy/go-json 0.10.2

Probably some big-endian issue in the code

Testing    in: /builddir/build/BUILD/go-json-0.10.2/_build/src
         PATH: /builddir/build/BUILD/go-json-0.10.2/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH: /builddir/build/BUILD/go-json-0.10.2/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags " -X github.com/goccy/go-json/version=0.10.2 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  '"
      testing: github.com/goccy/go-json
github.com/goccy/go-json
--- FAIL: TestUnmarshalMarshal (0.13s)
    decode_test.go:1903: Unmarshal: json: string unexpected end of JSON input
--- FAIL: TestUnmarshalRescanLiteralMangledUnquote (0.00s)
    decode_test.go:2805: Unmarshal unexpected error: invalid character '�' looking for beginning of value
--- FAIL: TestHTMLEscape (0.00s)
    encode_test.go:1377: HTMLEscape(&b, []byte(m)) = {"M":"<html\u003efoo \u0026\u2028 \u2029\u003c/html\u003e"}; want {"M":"\u003chtml\u003efoo \u0026\u2028 \u2029\u003c/html\u003e"}
--- FAIL: TestCompactBig (0.09s)
    json_test.go:201: Compact: json: string unexpected end of JSON input
--- FAIL: TestIndentBig (0.10s)
    json_test.go:216: Indent1: json: string unexpected end of JSON input
--- FAIL: TestEncoderSetEscapeHTML (0.00s)
    stream_test.go:163: Encode(stringOption) = `{"bar":""\u003chtml\\u003efoobar\\u003c/html\\u003e\""}`, want `{"bar":"\"\\u003chtml\\u003efoobar\\u003c/html\\u003e\""}`
    stream_test.go:172: SetEscapeHTML(false) Encode(stringOption) = `{"bar":""<html>foobar</html>\""}`, want `{"bar":"\"<html>foobar</html>\""}`
FAIL
exit status 1
FAIL	github.com/goccy/go-json	0.847s
@eclipseo eclipseo changed the title Tests faiilures on s390x Tests failures on s390x Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant