Mercurial > octave
changeset 22174:8358b9ef5def
fix test for profile (bug #46315)
* Also check for "TotalTime" in hierarchical info struct.
From Robert Jenssen.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 24 Jul 2016 12:51:12 -0400 |
parents | 8de49f15e182 |
children | 2258495e864a |
files | scripts/profiler/profile.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/profiler/profile.m Sun Jul 24 12:17:07 2016 +0200 +++ b/scripts/profiler/profile.m Sun Jul 24 12:51:12 2016 -0400 @@ -143,7 +143,7 @@ %! assert (fieldnames (ftbl), {"FunctionName"; "TotalTime"; "NumCalls"; "IsRecursive"; "Parents"; "Children"}); %! hier = info.Hierarchical; %! assert (size (hier), [0, 1]); -%! assert (fieldnames (hier), {"Index"; "SelfTime"; "NumCalls"; "Children"}); +%! assert (fieldnames (hier), {"Index"; "SelfTime"; "TotalTime"; "NumCalls"; "Children"}); ## Test input validation %!error profile ()