This looks like a potential mismatch:
3 parameters mocked: 8 + MOCK_METHOD3(open, int(char const* path, int flags, mode_t mode));
2 parameters used: 35 + tmp_fd = open(device.devnode(), O_RDWR | O_CLOEXEC);
Maybe it mocks correctly still? I guess the expectations would fail otherwise. The real function is: /usr/include/fcntl.h:extern int open (const char *__file, int __oflag, ...) __nonnull ((1));
Seems to work.
« Back to merge proposal
This looks like a potential mismatch:
3 parameters mocked:
8 + MOCK_METHOD3(open, int(char const* path, int flags, mode_t mode));
2 parameters used: devnode( ), O_RDWR | O_CLOEXEC);
35 + tmp_fd = open(device.
Maybe it mocks correctly still? I guess the expectations would fail otherwise. The real function is: fcntl.h: extern int open (const char *__file, int __oflag, ...) __nonnull ((1));
/usr/include/
Seems to work.