Home | History | Annotate | Download | only in tests

Lines Matching refs:ent

46   struct mntent ent;
47 memset(&ent, 0, sizeof(ent));
48 ent.mnt_opts = mnt_opts;
50 EXPECT_EQ(mnt_opts, hasmntopt(&ent, "aa"));
51 EXPECT_EQ(mnt_opts + 5, hasmntopt(&ent, "a"));
52 EXPECT_EQ(mnt_opts + 9, hasmntopt(&ent, "b"));
53 EXPECT_EQ(mnt_opts + 11, hasmntopt(&ent, "bb"));
54 EXPECT_EQ(mnt_opts + 14, hasmntopt(&ent, "c"));
55 EXPECT_EQ(nullptr, hasmntopt(&ent, "d"));
56 EXPECT_EQ(nullptr, hasmntopt(&ent, "e"));