The filename arguments in some output messages are wrong.

Signed-off-by: Li Zefan <[EMAIL PROTECTED]>

Index: ltp-full-20080229/testcases/kernel/syscalls/inotify/inotify02.c
===================================================================
--- ltp-full-20080229.orig/testcases/kernel/syscalls/inotify/inotify02.c        
2008-02-29 15:55:45.000000000 +0800
+++ ltp-full-20080229/testcases/kernel/syscalls/inotify/inotify02.c     
2008-03-26 11:17:40.000000000 +0800
@@ -138,7 +138,7 @@ int main(int ac, char **av){
         if ((fd = creat(FILE_NAME1, 0755)) == -1) {
             tst_brkm(TBROK, cleanup,
                 "creat(\"%s\", 755) Failed, errno=%d : %s",
-                fname1, errno, strerror(errno));
+                FILE_NAME1, errno, strerror(errno));
         }
         
         event_set[Tst_count].mask = IN_CREATE;
@@ -151,7 +151,7 @@ int main(int ac, char **av){
         if (close(fd) == -1) {
             tst_brkm(TBROK, cleanup, 
                     "close(%s) Failed, errno=%d : %s", 
-                    fname1, errno, strerror(errno));
+                    FILE_NAME1, errno, strerror(errno));
         }
         event_set[Tst_count].mask = IN_CLOSE_WRITE;
         strcpy(event_set[Tst_count].name, FILE_NAME1);
@@ -208,7 +208,7 @@ int main(int ac, char **av){
         if (rename(fname2, fname1) == -1){
             tst_brkm(TBROK, cleanup, 
                     "rename(%s, %s) Failed, errno=%d : %s",
-                    fname1, fname2,
+                    fname2, fname1,
                     errno, strerror(errno));
         }
         event_set[Tst_count].mask = IN_MOVE_SELF;




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to