[LTP] [PATCH] open_posix_testsuite: correct fork11-1 report log

Li Wang liwang@redhat.com
Sat Feb 20 13:37:24 CET 2021


Signed-off-by: Li Wang <liwang@redhat.com>
---
 .../open_posix_testsuite/conformance/interfaces/fork/11-1.c   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c b/testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c
index 8a7796cfd..e31f3896f 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c
@@ -47,7 +47,7 @@ static int child(int fd)
 
 	if (fcntl(fd, F_SETLK, &fl) == -1) {
 		if (errno == EACCES || errno == EAGAIN) {
-			printf("PASSED: child did not inherit the lock\n");
+			printf("PASSED: Child locked file already locked by parent\n");
 			return PTS_PASS;
 		}
 
@@ -56,7 +56,7 @@ static int child(int fd)
 		return PTS_UNRESOLVED;
 	}
 
-	printf("Child locked file already locked by parent\n");
+	printf("Child did not inherit the lock\n");
 	return PTS_FAIL;
 }
 
-- 
2.21.3



More information about the ltp mailing list