diff options
author | Balint Reczey <balint@balintreczey.hu> | 2018-02-06 05:31:32 +0700 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2018-02-14 15:52:27 +0100 |
commit | 9c6173559f95e939e66efb2ec3193d6f3618cf69 (patch) | |
tree | 22148a73f24f9205a9be4a245853b68d919fb2d8 /tests/unittests/libmtd_test.c | |
parent | daef4f155f4b677907f210d93839013204168d02 (diff) |
mtd: unittests: Stop testing stat() calls
Sometimes __xstat is called instead that makes tests fragile.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/unittests/libmtd_test.c')
-rw-r--r-- | tests/unittests/libmtd_test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/unittests/libmtd_test.c b/tests/unittests/libmtd_test.c index f36fb56..db1564a 100644 --- a/tests/unittests/libmtd_test.c +++ b/tests/unittests/libmtd_test.c @@ -53,7 +53,6 @@ static void test_mtd_dev_present(void **state) { int ret; libmtd_t lib = mock_libmtd_open(); - expect_stat(SYSFS_ROOT "/class/mtd/mtd0", 0); ret = mtd_dev_present(lib, 0); assert_int_equal(ret, 1); libmtd_close(lib); @@ -423,7 +422,6 @@ static void test_mtd_get_dev_info1(void **state) struct mtd_dev_info info; int dev_num = 0; memset(&info, 0, sizeof(info)); - expect_stat(SYSFS_ROOT "/class/mtd/mtd0", 0); expect_open(SYSFS_ROOT "/class/mtd/mtd0/dev", O_RDONLY, 0); expect_read_real(50,0); expect_read(1,0); |