diff options
author | Björn Gustavsson <[email protected]> | 2012-10-18 16:30:47 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-10-26 11:45:08 +0200 |
commit | a1bfc7b0abefe42aebd2616160b00c6bfdb9c4b6 (patch) | |
tree | 124b6342d76a0b3f44c9c3876d4126a7c811df93 /lib/observer/test/etop_SUITE.erl | |
parent | dafa6a1a7d478a61b220db811bc62f4b9b6d7de3 (diff) | |
download | otp-a1bfc7b0abefe42aebd2616160b00c6bfdb9c4b6.tar.gz otp-a1bfc7b0abefe42aebd2616160b00c6bfdb9c4b6.tar.bz2 otp-a1bfc7b0abefe42aebd2616160b00c6bfdb9c4b6.zip |
Simplify managment of test_server_loc
Before line numbers were included in exceptions (in R15), there were
parse transforms and macros that would keep the test_server_loc
process dictionary variable updated; therefore there is a mod_loc/1
function that will normalize the representation of locations.
Simplify the code as following:
* 'test_server_loc' should always contain a list with one or more
tuples. ({M,F} or {M,F,Line})
* At the beginning of each test case, set 'test_server_loc' to
[{Module,Func}] of the the currently executing test case.
* Stop updating 'test_server_loc', except when an exception occurs.
(It used to be updated when running 'init_per_testcase' and so on.)
* Remove the mod_loc/1 function.
Diffstat (limited to 'lib/observer/test/etop_SUITE.erl')
0 files changed, 0 insertions, 0 deletions