Skip to content

Commit

Permalink
Fix test-module-load-list for use-uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jul 28, 2011
1 parent 8527f00 commit 799c7bd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -166,6 +166,7 @@ UVTEST += simple/test-next-tick-errors
UVTEST += simple/test-next-tick-ordering
UVTEST += simple/test-next-tick-ordering2
UVTEST += simple/test-next-tick-starvation
UVTEST += simple/test-module-load-list
UVTEST += simple/test-path
UVTEST += simple/test-pipe-stream
UVTEST += simple/test-pump-file2tcp
Expand Down
39 changes: 27 additions & 12 deletions test/simple/test-module-load-list.js
Expand Up @@ -58,18 +58,33 @@ checkExpected();
// Now do the test again after we console.log something.
console.log("load console.log");

expected = expected.concat([
'NativeModule console',
'NativeModule net_legacy',
'NativeModule timers_legacy',
'Binding timer',
'NativeModule _linklist',
'Binding net',
'NativeModule freelist',
'Binding io_watcher',
'NativeModule tty',
'NativeModule tty_posix', // FIXME branch on win32 here.
]);
if (!process.features.uv) {
expected = expected.concat([
'NativeModule console',
'NativeModule net_legacy',
'NativeModule timers_legacy',
'Binding timer',
'NativeModule _linklist',
'Binding net',
'NativeModule freelist',
'Binding io_watcher',
'NativeModule tty',
'NativeModule tty_posix', // FIXME branch on win32 here.
]);
} else {
expected = expected.concat([
'NativeModule console',
'NativeModule net_legacy',
'NativeModule timers_uv',
'Binding timer_wrap',
'NativeModule _linklist',
'Binding net',
'NativeModule freelist',
'Binding io_watcher',
'NativeModule tty',
'NativeModule tty_posix'
]);
}

checkExpected();

Expand Down

0 comments on commit 799c7bd

Please sign in to comment.