On Tue, Jun 28, 2022 at 01:34:23PM -0400, Matt Barry wrote:
> Good call.  I've attached a minimal POC, which works in manual testing,
> but automated testing is tricky and there may be edge cases.  (This
> test is blocking; NB (erroring out) might be easier to test, but which
> is the better UX?)

A minimal test would be the test taking the lock, calling out to adduser
and seeing whether it fails. The other side (testing whether adduser
properly takes the lock) is probably harder.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to