You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test file which attempts to read a file from disk. When gopherjs has not been configured to support syscalls, this leads to a 'permission denied' error, but the test suite still passes:
$ gopherjs test
gopherjs: Source maps disabled. Use Node.js 4.x with source-map-support module for nice stack traces.
warning: system calls not available, see https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md
--- FAIL: TestFile (0.02s)
test.607290009:23615: Error opening file: open foobarbaz: permission denied
FAIL
ok github.com/flimzy/jstest 0.326s
I'm not sure what could possibly be causing this (why should t.Fatalf() care that syscalls are unsupported?), so I'm not entirely sure it's a problem with gopherjs.
I discovered this problem when some Travis CI tests were passing, despite the error message shown above.
The text was updated successfully, but these errors were encountered:
(why should t.Fatalf() care that syscalls are unsupported?), so I'm not entirely sure it's a problem with gopherjs.
A guess is that it's because t.Fatalf calls os.Exit, which in turn requires syscalls. Or something along those lines.
This is a bug, failing individual tests should result in the entire package failing too.
One way of resolving this is to make syscalls module a mandatory part of installing GopherJS. Another way is to simply find a way to make it work without syscalls.
Uh oh!
There was an error while loading. Please reload this page.
I have a test file which attempts to read a file from disk. When gopherjs has not been configured to support syscalls, this leads to a 'permission denied' error, but the test suite still passes:
My test file:
I'm not sure what could possibly be causing this (why should
t.Fatalf()
care that syscalls are unsupported?), so I'm not entirely sure it's a problem with gopherjs.I discovered this problem when some Travis CI tests were passing, despite the error message shown above.
The text was updated successfully, but these errors were encountered: