From 3d4678108a2157db6ae8c290897f67aaed14cdfa Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 31 Jul 2013 16:15:51 +0100 Subject: tools: remove in tree libaio We have defaulted to using the system libaio for a while now and I din't think there are any relevant distros which don't have it that running Xen 4.4 would be reasonable on. Also it has caused confusion because it is not ever wanted on ARM, but the build system doesn't express that (could be fixed, but deleting is the right thing to do anyway). Signed-off-by: Ian Campbell Reviewed-by: Andrew Cooper Acked-by: Matt Wilson Acked-by: Ian Jackson --- tools/libaio/harness/cases/12.t | 49 ----------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 tools/libaio/harness/cases/12.t (limited to 'tools/libaio/harness/cases/12.t') diff --git a/tools/libaio/harness/cases/12.t b/tools/libaio/harness/cases/12.t deleted file mode 100644 index 3499204440..0000000000 --- a/tools/libaio/harness/cases/12.t +++ /dev/null @@ -1,49 +0,0 @@ -/* 12.t -- ioctx access across fork() (12.t) - */ -#include -#include -#include -#include - -#include "aio_setup.h" - -void test_child(void) -{ - int res; - res = attempt_io_submit(io_ctx, 0, NULL, -EINVAL); - fflush(stdout); - _exit(res); -} - -int test_main(void) -{ - int res, status; - pid_t pid; - - if (attempt_io_submit(io_ctx, 0, NULL, 0)) - return 1; - - sigblock(sigmask(SIGCHLD) | siggetmask()); - fflush(NULL); - pid = fork(); assert(pid != -1); - - if (pid == 0) - test_child(); - - res = waitpid(pid, &status, 0); - - if (WIFEXITED(status)) { - int failed = (WEXITSTATUS(status) != 0); - printf("child exited with status %d%s\n", WEXITSTATUS(status), - failed ? " -- FAILED" : ""); - return failed; - } - - /* anything else: failed */ - if (WIFSIGNALED(status)) - printf("child killed by signal %d -- FAILED.\n", - WTERMSIG(status)); - - return 1; -} -- cgit v1.2.3