Changeset 26 for trunk


Ignore:
Timestamp:
03/03/08 17:01:29 (4 years ago)
Author:
dom
Message:

Started new test server (tester).

Location:
trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tests.erl

    r25 r26  
    44 
    55-module (tests). 
    6 -export ([filter_by_attribute/1]). 
     6-export ([filter_by_attribute/1, receive_all/0]). 
    77 
    88filter_by_attribute (Binary) -> 
     
    1111    Declarations = lists: flatten ([T || {test, T} <- Attributes]), 
    1212    filter_by_attribute (Module, Binary, Declarations, []). 
     13 
     14receive_all () -> 
     15    receive_all ([]). 
    1316 
    1417filter_by_attribute (Module, Binary, [exports | Tail], Tests) -> 
     
    3235exports_to_funs (_, [], Funs) -> 
    3336    Funs. 
     37 
     38receive_all (Ms) -> 
     39    receive M -> receive_all ([M | Ms]) 
     40    after 10000 -> lists: reverse (Ms) 
     41    end. 
     42                              
Note: See TracChangeset for help on using the changeset viewer.