[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Findutils-patches] xattr and capability support
From: |
Dale R. Worley |
Subject: |
Re: [Findutils-patches] xattr and capability support |
Date: |
Fri, 12 Dec 2014 09:39:45 -0500 |
KillBoy PowerHed <address@hidden> writes:
> 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?
Dale