1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-30 10:50:34 +03:00

tests: hide error message

Make the logging looks normal for this case
This commit is contained in:
Zdenek Kabelac 2014-03-04 16:41:07 +01:00
parent a01e2ff81c
commit 9a99cb8c79

View File

@ -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)