From: <ro...@us...> - 2003-03-11 21:44:51
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/flock In directory sc8-pr-cvs1:/tmp/cvs-serv23688 Modified Files: flock04.c flock05.c Log Message: Made small change to PASS/FAIL messages. Index: flock04.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/flock/flock04.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- flock04.c 3 Mar 2003 15:47:35 -0000 1.2 +++ flock04.c 11 Mar 2003 21:44:42 -0000 1.3 @@ -151,8 +151,8 @@ fd1 = open(filename, O_RDWR); retval= flock(fd1,LOCK_EX|LOCK_NB); if(retval == -1){ - tst_resm(TPASS, "flock() FAILED to acquire exclusive lock on existing " - "Share Locked file as expected"); + tst_resm(TPASS, "flock() failed to acquire exclusive lock on existing " + "share locked file as expected"); } else{ tst_resm(TFAIL, "flock() unexpectedly passed in acquiring exclusive lock on " Index: flock05.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/flock/flock05.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- flock05.c 3 Mar 2003 15:47:35 -0000 1.2 +++ flock05.c 11 Mar 2003 21:44:43 -0000 1.3 @@ -128,12 +128,12 @@ fd1 = open(filename, O_RDWR); retval= flock(fd1,LOCK_SH|LOCK_NB); if(retval == -1){ - tst_resm(TPASS, "flock() FAILED to acquire shared lock on an already" - "- Exclusive Locked file as expected"); + tst_resm(TPASS, "flock() failed to acquire shared lock on an already" + "exclusive locked file as expected"); } else{ tst_resm(TFAIL, "flock() unexpectedly PASSED in acquiring shared lock on " - "an already Exclusive Locked file"); + "an already exclusive locked file"); } return 0; } @@ -149,12 +149,12 @@ fd1 = open(filename, O_RDWR); retval= flock(fd1,LOCK_EX|LOCK_NB); if(retval == -1){ - tst_resm(TPASS, "flock() FAILED to acquire exclusive lock on existing " - "- Exclusive Locked file as expected"); + tst_resm(TPASS, "flock() failed to acquire exclusive lock on existing " + " exclusive locked file as expected"); } else{ tst_resm(TFAIL, "flock() unexpectedly passed in acquiring exclusive lock on " - "an Exclusive Locked file"); + "an exclusive locked file"); } return 0; } |