Signed-off-by: Yuan Sun <[email protected]>
---
testcases/kernel/containers/userns/userns01.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/testcases/kernel/containers/userns/userns01.c
b/testcases/kernel/containers/userns/userns01.c
index ad5c52d..3c55f8a 100644
--- a/testcases/kernel/containers/userns/userns01.c
+++ b/testcases/kernel/containers/userns/userns01.c
@@ -99,7 +99,6 @@ static void setup(void)
int main(int argc, char *argv[])
{
- int status;
int lc;
tst_parse_opts(argc, argv, NULL, NULL);
@@ -111,16 +110,7 @@ int main(int argc, char *argv[])
if (TEST_RETURN == -1)
tst_brkm(TFAIL | TTERRNO, NULL, "clone failed");
- else if ((wait(&status)) == -1)
- tst_brkm(TWARN | TERRNO, NULL, "wait failed");
-
- if (WIFEXITED(status) && WEXITSTATUS(status) != 0)
- tst_resm(TFAIL, "child exited abnormally");
- else if (WIFSIGNALED(status)) {
- tst_resm(TFAIL, "child was killed with signal = %d",
- WTERMSIG(status));
- } else
- tst_resm(TPASS, "uid and gid are right");
+ tst_record_childstatus(NULL, -1);
}
tst_exit();
}
--
1.9.1
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list