Skip to contentSkip to conversation

open_posix_testsuite: correct fork11-1 report log

PATCH New Li Wang 2 participants 3 messages Feb 20, 2021 – Feb 22, 2021

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 open_posix_testsuite: correct fork11-1 report log

---
 .../open_posix_testsuite/conformance/interfaces/fork/11-1.c   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c +2 -2
index 8a7796cfd..e31f3896f 100644
@@ -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;
 }
 
Signature · 1 line
2.21.3
#1 lore raw

PATCH 1/1 open_posix_testsuite: correct fork11-1 report log

Hi Li
Looks good to me,

ps: My pc (I use it to merge patch) is not with me, you can merge this yourself.

Quoted 27 lines
---
  .../open_posix_testsuite/conformance/interfaces/fork/11-1.c   | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c +2 -2
index 8a7796cfd..e31f3896f 100644
@@ -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;
  }
 
author Applied
#2 lore raw

PATCH 1/1 open_posix_testsuite: correct fork11-1 report log

Hi Xu,

Merged, thanks for your review!

Quoted 40 lines · Yang Xu

Hi Li
Looks good to me,

ps: My pc (I use it to merge patch) is not with me, you can merge this yourself.

Quoted 6 lines
---
  .../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

testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c static int child(int fd) · line 50

Quoted 9 lines

index 8a7796cfd..e31f3896f 100644

testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c +1 -1
@@ -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");

Quoted 12 lines
testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c +1 -1
                      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;
  }
 
Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210222/0b765d04/attachment-0001.htm>