Ignore:
Timestamp:
01/28/10 16:21:51 (2 years ago)
Author:
dom
Message:

File and line is now provided for test failures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/text_printer_test.erl

    r87 r92  
    3939    P ! {self (), tester, {4, 2, 2}}, 
    4040    <<".">> = receive_io_request (P), 
    41     P ! {self (), tester, {undef, [{foo, bar, []}, {toto, titi, 0}]}}, 
    42     <<"\nError: {undef,[{foo,bar,[]},{toto,titi,0}]}.\n">> = receive_io_request (P), 
     41    Error = {error, {undef, [{foo, bar, []}, {toto, titi, 0}]}}, 
     42    Stack = {stack_trace, [{eg_test, ok, 0}, {test_runner, run, 0}]}, 
     43    Locat = {location, {eg_test, ok, 0, "/dir/eg_test.erl", 12}}, 
     44    Dict = dict: from_list ([Error, Stack, Locat]), 
     45    P ! {self (), tester, Dict}, 
     46    <<"\n/dir/eg_test.erl(12): failure in {eg_test, ok, 0}" 
     47     "\n   Error: {undef,[{foo,bar,[]},{toto,titi,0}]}" 
     48     "\n   Stack: [{eg_test,ok,0},{test_runner,run,0}]\n">> = receive_io_request (P), 
    4349    P ! {self (), tester, {4, 3, 2}}, 
    4450    <<".">> = receive_io_request (P), 
     
    6672    Self = self (), 
    6773    receive 
    68         {io_request, P, Self, {put_chars, Binary}} -> 
     74        {io_request, P, Self, {put_chars, unicode, Binary}} -> 
    6975            P ! {io_reply, Self, ok}, 
    7076            Binary; 
Note: See TracChangeset for help on using the changeset viewer.