From 799c7bdcb6ecbaee36b33154d40305636100746f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 27 Jul 2011 20:03:02 -0700 Subject: [PATCH] Fix test-module-load-list for use-uv --- Makefile | 1 + test/simple/test-module-load-list.js | 39 +++++++++++++++++++--------- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 22a34e78b6d..7e7f4bd7331 100644 --- a/Makefile +++ b/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 diff --git a/test/simple/test-module-load-list.js b/test/simple/test-module-load-list.js index 7fcae2bf2e8..bf6217ff451 100644 --- a/test/simple/test-module-load-list.js +++ b/test/simple/test-module-load-list.js @@ -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();