Changeset 64
- Timestamp:
- 07/14/09 05:15:53 (3 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
-
compiler.erl (modified) (2 diffs)
-
compiler_test.erl (modified) (3 diffs)
-
shells.erl (modified) (1 diff)
-
shells_tests.erl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/compiler.erl
r63 r64 7 7 8 8 loop (Notify, Watcher, Modules) -> 9 Watcher ! check,9 receive check -> Watcher ! check end, 10 10 receive_files (Notify, Watcher, Modules, Modules). 11 11 … … 16 16 {Watcher, _} -> 17 17 receive_files (Notify, Watcher, Modules, New) 18 after 0 ->18 after 500 -> 19 19 compile (Notify, Watcher, Modules, New) 20 20 end. 21 21 22 22 compile (Notify, Watcher, Modules, Modules) -> 23 timer: sleep (4000),24 23 loop (Notify, Watcher, Modules); 25 24 compile (Notify, Watcher, _, Modules) -> -
trunk/src/compiler_test.erl
r63 r64 12 12 compiles_and_reports_progress_warnings_and_errors () -> 13 13 Compiler = spawn_link (compiler, init, [notify_me (), "fix"]), 14 Compiler ! check, 14 15 Ms = receive_all (), 15 16 Compiler ! stop, … … 26 27 provides_binaries_when_all_compiled (Root, _) -> 27 28 Compiler = spawn_link (compiler, init, [notify_me (), Root]), 29 Compiler ! check, 28 30 Ms = receive_all (), 29 31 Compiler ! stop, … … 37 39 recompiles_minimally_after_change (Root, _) -> 38 40 Compiler = spawn_link (compiler, init, [notify_me (), Root]), 41 Compiler ! check, 39 42 receive_all (), 40 43 File = filename: join (Root, "hello.erl"), 41 44 Bin = list_to_binary ("-module(hello). -export([run/0]). run()->hello_howdy."), 42 45 ok = file: write_file (File, Bin), 46 Compiler ! check, 43 47 [{2, 1, 1}, {2, 2, 2}, {binaries, [B]}] = receive_all (), 44 48 Compiler ! stop, -
trunk/src/shells.erl
r63 r64 11 11 receive {Self, done} -> ok; 12 12 M -> io:fwrite ("tests_crash: ~p~n", [M]) 13 after 30000 -> throw ("tests timed out~n")13 after 20000 -> throw ("tests timed out~n") 14 14 end 15 15 -
trunk/src/shells_tests.erl
r61 r64 34 34 Message -> 35 35 final_test_result ([Message | Messages]) 36 after 20000 -> {timeout, Messages}36 after 15000 -> {timeout, Messages} 37 37 end.
Note: See TracChangeset
for help on using the changeset viewer.
