summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-18 10:12:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-05-31 14:56:43 +1000
commit2a3afc8ad72e9023a99e4165a1302ecfcfe6b919 (patch)
tree5d7dce4bfe8f469eb3fc31b7b02e4d5bf1409c37 /test
parenteb4c5d1fb057c59d4c8e3bba0f20a0c797f95e1d (diff)
Copy the file descriptor into the private struct
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/eventcomm-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/eventcomm-test.c b/test/eventcomm-test.c
index 144d6dc..dcc4c4d 100644
--- a/test/eventcomm-test.c
+++ b/test/eventcomm-test.c
@@ -137,6 +137,7 @@ test_read_hw_state(void)
info.private = &private;
info.fd = fd_read;
+ private.fd = fd_read;
private.proto_data = EventProtoDataAlloc();
@@ -263,6 +264,7 @@ test_ignore_hw_state(void)
memset(&private, 0, sizeof(private));
info.private = &private;
info.fd = fd_read;
+ private.fd = fd_read;
private.proto_data = EventProtoDataAlloc();