Browse Source

Fix test-module-load-list for use-uv

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
799c7bdcb6
  1. 1
      Makefile
  2. 19
      test/simple/test-module-load-list.js

1
Makefile

@ -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

19
test/simple/test-module-load-list.js

@ -58,7 +58,8 @@ checkExpected();
// Now do the test again after we console.log something.
console.log("load console.log");
expected = expected.concat([
if (!process.features.uv) {
expected = expected.concat([
'NativeModule console',
'NativeModule net_legacy',
'NativeModule timers_legacy',
@ -69,7 +70,21 @@ expected = expected.concat([
'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();

Loading…
Cancel
Save