Honor rc in unit runs and fix execution path in make run

This commit is contained in:
pancake 2020-02-17 15:48:46 +01:00 committed by radare
parent f55c51443d
commit 36653ebe5a
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ $(BINDIR)/%: %.c
$(CC) $< -o $@ $(CFLAGS) $(LDFLAGS)
run:
r=0 ; for a in $(BINS) ; do ./$$a || r=1; done ; exit $r
r=0 ; cd .. ; for a in $(BINS) ; do ./unit/$$a || r=1; done ; echo unit$$r ; exit $$r
clean:
rm -f $(BINS)

View File

@ -42,7 +42,7 @@ static int strbuf_num_cmp1(void *incoming, void *in, void *user) {
}
bool test_r_rbtree_cont_delete() {
RContRBTree *tree = r_rbtree_cont_newf(r_strbuf_free);
RContRBTree *tree = r_rbtree_cont_newf ((RContRBFree)r_strbuf_free);
r_rbtree_cont_insert(tree, r_strbuf_new("13"), strbuf_num_cmp0, NULL);
r_rbtree_cont_insert(tree, r_strbuf_new("0x9090"), strbuf_num_cmp0, NULL);
r_rbtree_cont_insert(tree, r_strbuf_new("42"), strbuf_num_cmp0, NULL);