You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by shuming chen <cs...@hotmail.com> on 2020/05/13 10:20:46 UTC

[vfs] have some test failures when build with linux root user

Hi, all
    I'm trying to build the commons-vfs project by use maven command (mvn clean install) and I get some test failures.

    One of these failures came from org.apache.commons.vfs2.filter.CanReadFileFilterTest.testAcceptReadOnly() and it seems the reason is :
    1. the test case create a read-only file
    2. the test case check is this read-only file writable and it returns true, so the test case fail.

   I found this failure is related to root user. The test will pass if I don't run as root user.


Re: [vfs] have some test failures when build with linux root user

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Hello,

I guess we can document this on the site, I would not change the tests as running with root is a unusual thing to do, anyway.

Gruss
Bernd


--
http://bernd.eckenfels.net
________________________________
Von: shuming chen <cs...@hotmail.com>
Gesendet: Wednesday, May 13, 2020 12:20:46 PM
An: dev@commons.apache.org <de...@commons.apache.org>
Betreff: [vfs] have some test failures when build with linux root user

Hi, all
    I'm trying to build the commons-vfs project by use maven command (mvn clean install) and I get some test failures.

    One of these failures came from org.apache.commons.vfs2.filter.CanReadFileFilterTest.testAcceptReadOnly() and it seems the reason is :
    1. the test case create a read-only file
    2. the test case check is this read-only file writable and it returns true, so the test case fail.

   I found this failure is related to root user. The test will pass if I don't run as root user.