From 9c6173559f95e939e66efb2ec3193d6f3618cf69 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Tue, 6 Feb 2018 05:31:32 +0700 Subject: mtd: unittests: Stop testing stat() calls Sometimes __xstat is called instead that makes tests fragile. Signed-off-by: David Oberhollenzer --- tests/unittests/libubi_test.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/unittests/libubi_test.c') diff --git a/tests/unittests/libubi_test.c b/tests/unittests/libubi_test.c index 8deae91..35eb28f 100644 --- a/tests/unittests/libubi_test.c +++ b/tests/unittests/libubi_test.c @@ -98,7 +98,6 @@ static libubi_t mock_libubi_open() static void test_ubi_dev_present(void **state) { libubi_t lib = mock_libubi_open(); - expect_stat(SYSFS_ROOT "/class/ubi/ubi0", 0); int r = ubi_dev_present(lib, 0); assert_int_equal(r, 1); -- cgit v1.2.3