tech-userlevel archive

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

Re: ATF as nonprivilegied user



On Wed, Nov 14, 2012 at 08:48:38AM +0000, Emmanuel Dreyfus wrote:
> On Wed, Nov 14, 2012 at 08:44:16AM +0100, Martin Husemann wrote:
> > It used to just work (but will skip a few tests), can you give an example of
> > a failure?
> 
> tc-start: 1352878610.842974, o_search_flag1
> tc-se:FATAL ERROR: Cannot create results file '/tmp/atf-run.00899a/tcr': 
> Permission denied

Where is that?

If I do:

cd /usr/tests/lib/libc/gen/posix_spawn
atf-run | atf-report

I get:

Tests root: /usr/tests/lib/libc/gen/posix_spawn

t_spawn (1/3): 6 test cases
    t_spawn_child: [0.026350s] Passed.
..

t_spawnattr (3/3): 1 test cases
    t_spawnattr: [0.000165s] Skipped: Requires root privileges
[0.000627s]

Summary for 3 test programs:
    12 passed test cases.
    0 failed test cases.
    0 expected failed test cases.
    1 skipped test cases.


So it works in general. You may have hit a bug in atf triggered by your
specific test case, please file a PR with enough details to reproduce it
locally.

Martin


Home | Main Index | Thread Index | Old Index