From 19b10f61c07c233c62a283691710a3e2e4788340 Mon Sep 17 00:00:00 2001 From: glenrendes Date: Tue, 23 Apr 2019 16:24:51 +0200 Subject: [PATCH] some cleanup before matrix --- .../results_2019-04-19T09:41:00Z | 0 .../results_2019-04-23T14:20:14Z_passed | 25 ++++++++++++++++ module/da/test/src/test_da.cli.c | 2 -- module/da/test/src/test_da.lib.c | 29 ------------------- module/da/test/src/test_da.lib.h | 1 - 5 files changed, 25 insertions(+), 32 deletions(-) rename module/da/test/{ => results}/results_2019-04-19T09:41:00Z (100%) create mode 100644 module/da/test/results/results_2019-04-23T14:20:14Z_passed diff --git a/module/da/test/results_2019-04-19T09:41:00Z b/module/da/test/results/results_2019-04-19T09:41:00Z similarity index 100% rename from module/da/test/results_2019-04-19T09:41:00Z rename to module/da/test/results/results_2019-04-19T09:41:00Z diff --git a/module/da/test/results/results_2019-04-23T14:20:14Z_passed b/module/da/test/results/results_2019-04-23T14:20:14Z_passed new file mode 100644 index 0000000..a82fc93 --- /dev/null +++ b/module/da/test/results/results_2019-04-23T14:20:14Z_passed @@ -0,0 +1,25 @@ +Hello Emacs + + +2019-04-23T14:20:14Z +glendawest045@phoenix§~/subu/module/da/test§ +> make lib exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib +make[1]: Nothing to be done for 'lib'. +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc exec +make sub_exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc sub_exec +make[3]: Nothing to be done for 'sub_exec'. + +2019-04-23T14:20:40Z +glendawest045@phoenix§~/subu/module/da/test§ +> cd exec/ + +2019-04-23T14:20:45Z +glendawest045@phoenix§~/subu/module/da/test/exec§ +> ./test_da +passed all 21 tests + +2019-04-23T14:20:47Z +glendawest045@phoenix§~/subu/module/da/test/exec§ +> \ No newline at end of file diff --git a/module/da/test/src/test_da.cli.c b/module/da/test/src/test_da.cli.c index 3d600a3..ecd79ea 100644 --- a/module/da/test/src/test_da.cli.c +++ b/module/da/test/src/test_da.cli.c @@ -29,7 +29,6 @@ int main(){ test_da_free_0, test_da_emptyq_0, test_da_length_0, - test_da_push_alloc_0, NULL}; char *test_names[] = { @@ -54,7 +53,6 @@ int main(){ "test_da_free_0", "test_da_emptyq_0", "test_da_length_0", - "test_da_push_alloc_0", NULL}; // call tests diff --git a/module/da/test/src/test_da.lib.c b/module/da/test/src/test_da.lib.c index b3f53b8..4e872c1 100644 --- a/module/da/test/src/test_da.lib.c +++ b/module/da/test/src/test_da.lib.c @@ -698,33 +698,6 @@ bool test_da_length_0(){ return result; } -//still failing -//tests da_push_alloc(){ -bool test_da_push_alloc_0(){ - Da da; - Da *da_pt = &da; - da_alloc(da_pt, sizeof(char)); - char cats[] = "cats"; - da_push(da_pt, &cats[0]); - da_push(da_pt, &cats[1]); - da_push(da_pt, &cats[2]); - da_push(da_pt, &cats[3]); - - //save end point and rewind - char *stop = da.end; - da_rewind(da_pt); - bool flag1 = da.base == da.end; - - //allocate for pushes but don't change data - char *next = da_pt->base; - bool flag2 = next != da_pt->end; - while(flag2 && next != stop){ - next = da_push_alloc(da_pt); - flag2 = next != da_pt->end; - } - - return flag1 && flag2; -} /* Functions @@ -738,7 +711,6 @@ bool test_da_push_alloc_0(){ -da_boundq -da_index -da_strings_exists_0 -da_push_alloc -da_push -da_pop da_endq @@ -779,6 +751,5 @@ test_da_alloc_0 test_da_free_0 test_da_emptyq_0 test_da_length_0 -test_da_push_alloc_0 */ diff --git a/module/da/test/src/test_da.lib.h b/module/da/test/src/test_da.lib.h index f0b797b..1cc5f8e 100644 --- a/module/da/test/src/test_da.lib.h +++ b/module/da/test/src/test_da.lib.h @@ -22,6 +22,5 @@ bool test_da_alloc_0(); bool test_da_free_0(); bool test_da_emptyq_0(); bool test_da_length_0(); -bool test_da_push_alloc_0(); #endif -- 2.20.1