On Mon, Apr 04, 2011 at 10:18:52AM +0300, Jukka Ruohonen wrote: > On Mon, Apr 04, 2011 at 09:05:19AM +0200, Nicolas Joly wrote: > > Adding the following to the testcase header should do the trick: > > > > atf_tc_set_md_var(tc,"require.user","unprivileged"); > > > > In that case, if run as root, it will lower its privileges to the > > unprivileged user _atf before running the test. > > Thanks, that indeed does the job. > > If I may express my humble opinion, there seems to be currently way too much > weird macro-magic and undocumented calls in atf(7)...
Meta-data properties, like this one, are already described in atf-test-case(4) man page. -- Nicolas Joly Projects and Developments in Bioinformatics Institut Pasteur, Paris.