summaryrefslogtreecommitdiff
path: root/tests/unittests/test_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_lib.h')
-rw-r--r--tests/unittests/test_lib.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/unittests/test_lib.h b/tests/unittests/test_lib.h
index 806a4bc..7a6a003 100644
--- a/tests/unittests/test_lib.h
+++ b/tests/unittests/test_lib.h
@@ -57,13 +57,6 @@ int __wrap_ioctl(int fd, unsigned long req, ...)
return retval;
}
-int __wrap_stat(const char *path, struct stat *buf)
-{
- check_expected(path);
- assert_non_null(buf);
- return mock_type(int);
-}
-
int __wrap_read(int fd, char *buf, size_t len)
{
assert_true(fd > 0);
@@ -118,11 +111,6 @@ off_t __wrap_lseek(int fd, off_t seek, int whence)
will_return(__wrap_ioctl, NULL);\
} while(0);
-#define expect_stat(X,Y) do { \
- expect_string(__wrap_stat, path, X);\
- will_return(__wrap_stat, Y);\
- } while(0);
-
#define expect_write(X,Y,Z) do { \
will_return(__wrap_write, X);\
will_return(__wrap_write, Y);\