From: Baptiste Daroussin Date: Thu, 6 Jul 2023 13:09:13 +0000 (+0200) Subject: incindexfile: actually test the normal behaviour :D X-Git-Tag: RELEASE_1_4_0rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d17d58e1d9d9aade512dcf5c5fee42548397c2;p=thirdparty%2Fmlmmj.git incindexfile: actually test the normal behaviour :D --- diff --git a/tests/mlmmj.c b/tests/mlmmj.c index 8ea6db6f..b80510a2 100644 --- a/tests/mlmmj.c +++ b/tests/mlmmj.c @@ -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); }