]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
incindexfile: actually test the normal behaviour :D
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 6 Jul 2023 13:09:13 +0000 (15:09 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 6 Jul 2023 13:09:13 +0000 (15:09 +0200)
tests/mlmmj.c

index 8ea6db6f632e88a7d6d46aee3727fe0bca79abbe..b80510a215f5cbedd1b18ada5eb7d7acc0d77206 100644 (file)
@@ -1388,6 +1388,9 @@ ATF_TC_BODY(incindexfile, tc)
        unlink("list/index");
        atf_utils_create_file("list/index", "");
        ATF_REQUIRE_EQ(incindexfile(fd), 1);
+       unlink("list/index");
+       atf_utils_create_file("list/index", "1");
+       ATF_REQUIRE_EQ(incindexfile(fd), 2);
        close(fd);
 }