Skip to content

Instantly share code, notes, and snippets.

@richardlau
Created April 19, 2016 18:39
Show Gist options
  • Save richardlau/01123b216e8ef84637fa7bcac0c669ed to your computer and use it in GitHub Desktop.
Save richardlau/01123b216e8ef84637fa7bcac0c669ed to your computer and use it in GitHub Desktop.
fs-vacuum racy-entries test on AIX before fix for EEXIST
-bash-4.3$ npm test
> [email protected] test /home/users/riclau/sandbox/github/fs-vacuum
> standard && tap test/*.js
test/arguments.js ..................................... 5/5
test/base-leaf-mismatch.js ............................ 2/2 678ms
test/no-entries-file-no-purge.js .................... 19/19
test/no-entries-link-no-purge.js .................... 21/21
test/no-entries-no-purge.js ......................... 15/15
test/no-entries-with-link-purge.js .................. 17/17
test/no-entries-with-purge.js ....................... 16/16
test/other-directories-no-purge.js .................. 16/16
test/racy-entries.js ................................ 17/19
remove up to a point
not ok cleaned up to base
found:
name: Error
stack: >-
Error: EEXIST: file already exists, rmdir
'/tmp/tmp-15466592wxSXM2qcc74W/i/am/a/path/that/ends/at/a'
at Error (native)
message: >-
EEXIST: file already exists, rmdir
'/tmp/tmp-15466592wxSXM2qcc74W/i/am/a/path/that/ends/at/a'
errno: -17
code: EEXIST
syscall: rmdir
path: /tmp/tmp-15466592wxSXM2qcc74W/i/am/a/path/that/ends/at/a
at:
line: 71
column: 7
file: test/racy-entries.js
stack: |
test/racy-entries.js:71:7
FSReqWrap.oncomplete (vacuum.js:104:20)
source: |
t.ifError(er, 'cleaned up to base')
remove up to a point
not ok should be equal
+++ found
--- wanted
-quitting because new (racy) entries in /tmp/tmp-15466592wxSXM2qcc74W/i/am/a/path/that/ends/at/a
+unable to remove /tmp/tmp-15466592wxSXM2qcc74W/i/am/a/path/that/ends/at/a due to EEXIST: file already exists, rmdir '/tmp/tmp-15466592wxSXM2qcc74W/i/am/a/path/that/ends/at/a'
compare: ===
at:
line: 74
column: 7
file: test/racy-entries.js
stack: |
test/racy-entries.js:74:7
FSReqWrap.oncomplete (vacuum.js:104:20)
source: |
t.equal(messages[2], 'quitting because new (racy) entries in ' + partialPath)
total ............................................. 128/130
128 passing (7s)
2 failing
npm ERR! Test failed. See above for more details.
-bash-4.3$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment