aboutsummaryrefslogtreecommitdiffstats
path: root/tests/io_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io_mock.h')
-rw-r--r--tests/io_mock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/io_mock.h b/tests/io_mock.h
index adb5f3b3..a285e534 100644
--- a/tests/io_mock.h
+++ b/tests/io_mock.h
@@ -53,6 +53,9 @@ struct pci_dev {
/* Linux I2C interface constants, avoiding linux/i2c-dev.h */
#define I2C_SLAVE 0x0703
+/* Always return success for tests. */
+#define S_ISREG(x) 0
+
struct io_mock {
void *state;