// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) Crackerjack Project., 2007 * Ported from Crackerjack to LTP by Masatake YAMATO * Copyright (c) 2011 Cyril Hrubis */ /*\ * [Description] * * Calls io_getevents() when ctx is invalid and expects it to return EINVAL. */ #include #include "config.h" #include "tst_test.h" #include "lapi/syscalls.h" static void run(void) { aio_context_t ctx; memset(&ctx, 0, sizeof(ctx)); TST_EXP_FAIL(tst_syscall(__NR_io_getevents, ctx, 0, 0, NULL, NULL), EINVAL); } static struct tst_test test = { .test_all = run, };