[systemd-devel] [PATCH v2] fsck: Search for fsck.type in PATH

Mike Gilbert floppym at gentoo.org
Sat Apr 12 12:54:35 PDT 2014


On Sat, Apr 12, 2014 at 3:10 PM, Mike Gilbert <floppym at gentoo.org> wrote:
> On Sat, Apr 12, 2014 at 1:40 PM, Zbigniew Jędrzejewski-Szmek
> <zbyszek at in.waw.pl> wrote:
>>> +static void test_fsck_exists(void) {
>>> +        /* Ensure we use a sane default for PATH. */
>>> +        unsetenv("PATH");
>>> +
>>> +        /* fsck.minix is provided by util-linux and will probably exist. */
>>> +        assert(fsck_exists("minix") == 0);
>>> +
>>> +        assert(fsck_exists("AbCdE") == -ENOENT);
>>> +}
>> assert_se().
>>
>
> We are comparing integers, not strings. This matches the other integer
> comparisons in this source file.
>

I guess I have misinterpreted what "assert_se" means... is that
documented somewhere?


More information about the systemd-devel mailing list