Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

Commit

Permalink
Setup and teardown gives me a segmentation fault
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Janssens authored and Tom Janssens committed Oct 5, 2013
1 parent 7c1ad73 commit d893825
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/basic_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

-include_lib("eunit/include/eunit.hrl").

setup_and_teardown_test()->
{ok, Drv} = gen_driver_test:start_link(),
gen_driver_test:stop(Drv).

basic_test() ->
gen_driver_test:start_link(),
{ok, Drv} = gen_driver_test:start_link(),
timer:sleep(500),
?assertEqual(100,gen_driver_test:sum(1,2,97)),
gen_driver_test:stop().
{ok, Result} = gen_driver_test:sum(Drv,[1,2,97]),
?assertEqual(100.0, Result),
gen_driver_test:stop(Drv).


0 comments on commit d893825

Please sign in to comment.