Skip to content

Support testing package with Go 1.16 and re-enable most of its tests. #995

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

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

nevkontakte
Copy link
Member

There were two major issues with the package:

  • os.RemoveAll() implementation on linux was using Fstatat syscall,
    which doesn't work with the node-syscall extension (see node-syscall doesn't support struct-pointer arguments #993).
  • runtime.Callers() is not implemented by GopherJS, which causes
    testing package to report source code locations according to the JS
    output file rather than the original Go code. I had to skip a bunch
    of tests because of that, but at least most other tests can be
    tracked now.

Updates #989.

@nevkontakte nevkontakte requested a review from flimzy March 12, 2021 13:34
There were two major issues with the package:

  - os.RemoveAll() implementation on linux was using Fstatat syscall,
    which doesn't work with the node-syscall extension (see gopherjs#993).
  - runtime.Callers() is not implemented by GopherJS, which causes
    testing package to report source code locations according to the JS
    output file rather than the original Go code. I had to skip a bunch
    of tests because of that, but at least most other tests can be
    tracked now.
@nevkontakte nevkontakte merged commit 9b3d9ea into gopherjs:go1.16-stdlib Mar 12, 2021
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

Successfully merging this pull request may close these issues.

2 participants