covStart(macro) stops all formerly activated functions
Reported by Jakub Kopac
BUG DESCRIPTION:
----------------
covStart does not initialize function, see sample below
ERROR LOG:
----------
none
HOW TO REPRODUCE THE BUG:
-------------------------
run this script, after error switch covStart lines
//CODE START
clc
clear
function fx = sub1(x1,x2)
fx = x1+x2
fx = fx/x2
endfunction
function fx = sub2(x1,x2)
fx = sub1(x1,x2)
endfunction
nrun = 1e4
covStart(sub1)
covStart(sub2)
//AFTER ERROR UNCOMMENT THIS LINES A COMMENT TWO ABOVE
//covStart(sub2)
//covStart(sub1)
for ii=1:nrun
sub2(10,7)
end
covWrite("html", "TMPDIR/coverage")
covStop()
winopen('TMPDIR/coverage/'+'sub2'+'.html')
winopen('TMPDIR/coverage/'+'sub1'+'.html')
//CODE END
OTHER INFORMATION:
------------------
Win 7 pro, 64 bit