test: logging: fix compilation on Chromium OS
Commita25c937f8a
("test: add logging API test") causes the build to fail in the Chromium OS build environment, because the return value of a function call marked with the __warn_unused_result__ attribute is ignored. Fix this. Fixes:a25c937f8a
("test: add logging API test") Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
df23ab95f3
commit
b5cffad2d4
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ protected:
|
||||||
char buf[1000];
|
char buf[1000];
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
lseek(fd, 0, SEEK_SET);
|
lseek(fd, 0, SEEK_SET);
|
||||||
read(fd, buf, sizeof(buf));
|
if (read(fd, buf, sizeof(buf)) < 0) {
|
||||||
|
cerr << "Failed to read tmp log file" << endl;
|
||||||
|
return TestFail;
|
||||||
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
std::list<int> goodList = { 1, 3, 5 };
|
std::list<int> goodList = { 1, 3, 5 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue