Skip to content

Commit

Permalink
adds xray test, reorders tests, fixes sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneBettis committed Aug 22, 2022
1 parent c38a053 commit bfacafc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pkg/noun/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,10 +993,10 @@ u3t_slog_meme(c3_l pri_l)
_slog_blank(pri_l);

// warn if any sanity checks have failed
if (full_p != (100.0 - imut_p))
u3t_slog_cap(3, u3i_string("error"), u3i_string("road != (loom - immutable)"));
if (100.0 < (imut_heap_p + heap_p + free_p + open_p + stak_p + imut_stak_p))
if (100.01 < (imut_heap_p + heap_p + free_p + open_p + stak_p + imut_stak_p))
u3t_slog_cap(3, u3i_string("error"), u3i_string("loom sums over 100%"));
if ( 99.99 > (imut_heap_p + heap_p + free_p + open_p + stak_p + imut_stak_p))
u3t_slog_cap(3, u3i_string("error"), u3i_string("loom sums under 100%"));

struct _report_bar bar = _report_bargraph(
imut_heap_p,
Expand Down
6 changes: 0 additions & 6 deletions pkg/noun/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@
void
u3t_slog_xray(c3_l pri_l, u3_noun inf);

/* u3t_slog_xray_raw(): this is for me to hack on
** it must be replace with u3t_xray() before release.
*/
void
u3t_slog_xray_raw(c3_l pri_l, u3_noun fol, c3_w ip_w);

/* u3t_slog_memory():
*/
void
Expand Down

0 comments on commit bfacafc

Please sign in to comment.