diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-03-04 16:41:07 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-03-04 16:41:07 +0100 |
commit | 9a99cb8c7947e19291794aa80d5bcdc73fa6245f (patch) | |
tree | 5c9e749be6c1d56a0cc7a6c5a091dd8b2fd53332 | |
parent | a01e2ff81c9e7f629d9011b7d69d9f2780a98484 (diff) | |
download | lvm2-9a99cb8c7947e19291794aa80d5bcdc73fa6245f.tar.gz |
tests: hide error message
Make the logging looks normal for this case
-rw-r--r-- | test/lib/harness.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/harness.c b/test/lib/harness.c index d02e9ded1..4e9c54f61 100644 --- a/test/lib/harness.c +++ b/test/lib/harness.c @@ -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) |