[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Findutils-patches] xattr and capability support

From: KillBoy PowerHed
Subject: Re: [Findutils-patches] xattr and capability support
Date: Sat, 13 Dec 2014 03:43:09 +0000 (UTC)

>> So my question for today is about test cases, is there a complexity
>> tipping point after which it's not worth it?
>> i.e. for '-xattr'
>> - Ensure the filesystem supports extended attributes
>> - create a test file
>> - set an etended attribute
>> - check that the file matches the pattern
>> For the '-cap' option, creating the test case would be even more complex
>> as you need root permissions to set capabilities on files, need to ensure
>> sample files are cleaned up etc
>> ... thoughts?

>If someone later changes your code in a way that prevents it from
>working correctly, is there a high probability that the tests you write
>will reveal that the mistake has been made?

Good point .. I probably could have thought that one through a bit longer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]