From 3bfca9c540fa797cb4219f74e15f627362c694bb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 28 May 2015 12:08:04 -0700 Subject: [PATCH] more test_unistd_misc fixes --- src/library_fs.js | 2 +- tests/unistd/misc.c | 4 ++-- tests/unistd/misc.out | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/library_fs.js b/src/library_fs.js index e022c27fb..dbb00de94 100644 --- a/src/library_fs.js +++ b/src/library_fs.js @@ -1338,7 +1338,7 @@ mergeInto(LibraryManager.library, { ensureErrnoError: function() { if (FS.ErrnoError) return; FS.ErrnoError = function ErrnoError(errno, node) { - // Module.printErr(stackTrace()); // useful for debugging + //Module.printErr(stackTrace()); // useful for debugging this.node = node; this.setErrno = function(errno) { this.errno = errno; diff --git a/tests/unistd/misc.c b/tests/unistd/misc.c index e9f0f7c4b..29ad68993 100644 --- a/tests/unistd/misc.c +++ b/tests/unistd/misc.c @@ -54,10 +54,10 @@ int main() { printf(", errno: %d\n", errno); errno = 0; - printf("lockf(good): %d", lockf(f, 123, 456)); + printf("lockf(good): %d", lockf(f, F_LOCK, 456)); printf(", errno: %d\n", errno); errno = 0; - printf("lockf(bad): %d", lockf(42, 123, 456)); + printf("lockf(bad): %d", lockf(42, F_LOCK, 456)); printf(", errno: %d\n", errno); errno = 0; diff --git a/tests/unistd/misc.out b/tests/unistd/misc.out index a32846308..8c086d174 100644 --- a/tests/unistd/misc.out +++ b/tests/unistd/misc.out @@ -9,7 +9,7 @@ tcsetpgrp(bad): -1, errno: 9 link: -1, errno: 31 lockf(good): 0, errno: 0 lockf(bad): -1, errno: 9 -nice: 0, errno: 1 +nice: -1, errno: 1 pause: -1, errno: 4 pipe(good): -1, errno: 38 pipe(bad): -1, errno: 38