Skip to content

Commit

Permalink
extract expansion/collapse from assert()
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Nov 21, 2020
1 parent 071af43 commit f5fa78f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Expand Up @@ -158,14 +158,15 @@ endif()
file(GLOB PCAPS CONFIGURE_DEPENDS test/*.pcap)
enable_testing()
foreach(p ${PCAPS})
get_filename_component(pe ${p} NAME_WLE)
add_test(
NAME coretest-${p}
COMMAND omphalos-readline -u "" -f ${p} --plog=plog.pcap --ouis=../ieee-oui.txt
NAME ${pe}
COMMAND omphalos-readline --mode=silent -u "" -f ${p} --plog=plog.pcap --ouis=../ieee-oui.txt
)
endforeach()

add_custom_target(livetest
omphalos -u '' --plog=plog.pcap --ouis=../ieee-oui.txt
omphalos --mode=silent -u '' --plog=plog.pcap --ouis=../ieee-oui.txt
)

install(
Expand Down
4 changes: 2 additions & 2 deletions src/ui/notcurses/iface.c
Expand Up @@ -283,8 +283,8 @@ l4obj *add_service_to_iface(iface_state *is, struct l2obj *l2, struct l3obj *l3,
l4->next = *prev;
*prev = l4;
}
assert(node_lines(is->expansion, l3->l2) == l3->l2->lnes);
assert(node_lines(is->expansion, l2) == l2->lnes);
node_lines(is->expansion, l3->l2);
node_lines(is->expansion, l2);
return l4;
}

Expand Down

0 comments on commit f5fa78f

Please sign in to comment.