Skip to content

failed test: parallel/test-fs-access.js #1031

@jbergstroem

Description

@jbergstroem

On a linux amd64 3.18.0 system running glibc 2.20, an error event isn't thrown when trying to open a readonly file with W_OK as root (obviously works as intended as a user):

=== release test-fs-access ===                    
Path: parallel/test-fs-access
assert.js:87
  throw new assert.AssertionError({
        ^
AssertionError: error should exist
    at /home/jbergstroem/iojs/test/parallel/test-fs-access.js:48:10
    at FSReqWrap.oncomplete (fs.js:77:15)
Command: out/Release/iojs /home/jbergstroem/iojs/test/parallel/test-fs-access.js
[00:00|% 100|+   0|-   1]: Done   

Stat:ing the file looks as it should (was esp. interested in mode):

{ dev: 2049,
  mode: 33060,
  nlink: 1,
  uid: 0,
  gid: 0,
  rdev: 0,
  blksize: 4096,
  ino: 253029,
  size: 0,
  blocks: 0,
  atime: Tue Mar 03 2015 11:33:55 GMT+1100 (AEDT),
  mtime: Tue Mar 03 2015 11:33:55 GMT+1100 (AEDT),
  ctime: Tue Mar 03 2015 11:33:55 GMT+1100 (AEDT),
  birthtime: Tue Mar 03 2015 11:33:55 GMT+1100 (AEDT) }

I'll first try to establish that it is in fact a newer glibc before doing anything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions