diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 22:28:25 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 22:31:48 -0700 |
| commit | 9593fc545950782ed75f12f53238b07885559b2b (patch) | |
| tree | 9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/list/test/run-list_del_from-assert.c | |
| parent | bd8c223756d2f912526ecef53bae0cc8e0c63442 (diff) | |
remove ccan for now
Diffstat (limited to 'ccan/list/test/run-list_del_from-assert.c')
| -rw-r--r-- | ccan/list/test/run-list_del_from-assert.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/ccan/list/test/run-list_del_from-assert.c b/ccan/list/test/run-list_del_from-assert.c deleted file mode 100644 index 9404b71..0000000 --- a/ccan/list/test/run-list_del_from-assert.c +++ /dev/null @@ -1,36 +0,0 @@ -#define CCAN_LIST_DEBUG 1 -#include <ccan/list/list.h> -#include <ccan/tap/tap.h> -#include <ccan/list/list.c> -#include <sys/types.h> -#include <sys/wait.h> -#include <unistd.h> -#include <signal.h> - -int main(void) -{ - struct list_head list1, list2; - struct list_node n1, n2, n3; - pid_t child; - int status; - - plan_tests(1); - list_head_init(&list1); - list_head_init(&list2); - list_add(&list1, &n1); - list_add(&list2, &n2); - list_add_tail(&list2, &n3); - - child = fork(); - if (child) { - wait(&status); - } else { - /* This should abort. */ - list_del_from(&list1, &n3); - exit(0); - } - - ok1(WIFSIGNALED(status) && WTERMSIG(status) == SIGABRT); - list_del_from(&list2, &n3); - return exit_status(); -} |
