From 48ec055ddc475bd521d87733a4d128b62681d6d7 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 1 Mar 2021 14:05:31 -0300 Subject: posix: Add wait3 tests The tst-wait4 is moved to common file and used for wait3 tests. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Siddhesh Poyarekar --- posix/tst-wait3.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 posix/tst-wait3.c (limited to 'posix/tst-wait3.c') diff --git a/posix/tst-wait3.c b/posix/tst-wait3.c new file mode 100644 index 0000000000..27411c04e4 --- /dev/null +++ b/posix/tst-wait3.c @@ -0,0 +1,22 @@ +/* Tests for wait3. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#define WAIT_CALL(__pid, __wstatus, __options, __rusage) \ + wait3 (__wstatus, __options, __rusage) + +#include "tst-wait-skeleton.c" -- cgit 1.4.1