azynheira / mu0

Automatically exported from code.google.com/p/mu0
0 stars 0 forks source link

Some test fail when run as root #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run 'make check' with root user

/mu-maildir/mu-maildir-mkdir-04:                                     **
ERROR:test-mu-maildir.c:167:test_mu_maildir_mkdir_04: assertion failed 
(mu_maildir_mkdir (mdir, 0755, FALSE, NULL) == FALSE): (1 == 0)
FAIL
GTester: last random seed: R02S0501f23d70fc88cc0c812313e7ba4df1
/bin/sh: line 5: 24179 Terminated              gtester --verbose test-mu-util 
test-mu-str test-mu-maildir test-mu-msg-fields test-mu-msg test-mu-store 
test-mu-date test-mu-flags
make[2]: *** [test] Error 143

I guess this is not too much of a problem, but in Gentoo the package manager 
may run tests as root.
Thanks,
Thomas

Original issue reported on code.google.com by feynma...@gmail.com on 2 Nov 2012 at 9:46

GoogleCodeExporter commented 8 years ago
Hmmm, whether it's a good idea to run unit tests as root is another matter, but 
at least latest git should fix this. Can you check?

Thanks for the report.

Original comment by digg...@gmail.com on 8 Nov 2012 at 8:33

GoogleCodeExporter commented 8 years ago
Works. Thanks! (The gentoo package manager runs them as root, but in a sandbox 
that prevents access to the filesystem...).

Original comment by feynma...@gmail.com on 8 Nov 2012 at 9:44

GoogleCodeExporter commented 8 years ago
Great!

Original comment by digg...@gmail.com on 11 Nov 2012 at 5:39