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

This commit is contained in:
Ryan Dahl 2011-07-27 20:03:02 -07:00
parent 8527f00c3c
commit 799c7bdcb6
2 changed files with 28 additions and 12 deletions

View File

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

View File

@ -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();