master - tests: hide error message
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9a99cb8c7947e19291794aa80d5bcdc73fa6245f Commit: 9a99cb8c7947e19291794aa80d5bcdc73fa6245f Parent: a01e2ff81c9e7f629d9011b7d69d9f2780a98484 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Mar 4 16:41:07 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Mar 4 16:41:07 2014 +0100
tests: hide error message
Make the logging looks normal for this case
--- test/lib/harness.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/harness.c +1 -1
@@ -441,7 +441,7 @@ static void run(int i, char *f) {perror ("open /dev/kmsg" ); }else if (read (fd_kmsg,NULL ,0 ) ==-1 ) {/* There is /dev/kmsg, but unreadable -> ignore it (RHEL6?) */ -perror ("read /dev/kmsg" ); +/* Expected error, stay quiet so log looks nice, perror("read /dev/kmsg"); */ close (fd_kmsg); fd_kmsg =-1 ; }else if (lseek (fd_kmsg,0L ,SEEK_END ) == (off_t) -1 )