projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47aafeb
)
fix gcc warning on unused return value
author
Andreas Pokorny
<andreas.pokorny@canonical.com>
Fri, 4 Sep 2015 11:35:01 +0000
(13:35 +0200)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Sun, 6 Sep 2015 21:41:41 +0000
(07:41 +1000)
Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index 29e764b4cd6fca4c4b50de197c1aebfc824cc423..38e313eb16f38145342f37b961210b6bbe73b293 100644
(file)
--- a/
test/litest.c
+++ b/
test/litest.c
@@
-932,13
+932,15
@@
merge_events(const int *orig, const int *override)
static inline void
litest_copy_file(const char *dest, const char *src, const char *header)
{
- int in, out;
+ int in, out
, length
;
out = open(dest, O_CREAT|O_WRONLY, 0644);
litest_assert_int_gt(out, -1);
- if (header)
- write(out, header, strlen(header));
+ if (header) {
+ length = strlen(header);
+ litest_assert_int_eq(write(out, header, length), length);
+ }
in = open(src, O_RDONLY);
litest_assert_int_gt(in, -1);