New issue
Advanced search Search tips

Issue 848387 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Various base_unittests tests fail when ran as root on linux

Project Member Reported by bpastene@chromium.org, May 31 2018

Issue description

The following base_unittests tests fail when ran as root on Ubuntu, but succeed when ran as a less-privileged user.

FileUtilTest.ChangeFilePermissionsAndWrite
FileUtilTest.ChangeDirectoryPermissionsAndEnumerate
FileUtilTest.ChangeFilePermissionsAndRead
TaskSchedulerWorkerTest.BumpPriorityOfAliveThreadDuringShutdown

I think it makes sense to make these tests root/user-agnostic. For context, I'm working on enabling this suite on ChromeOS, and our current setup only supports running tests inside the cros env as root. Consequently, these tests fail:
https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/chromeos-amd64-generic-rel-vm-tests/2666

Filing as low-pri since I'm working on adding support for non-root users to the test harness.
 

Sign in to add a comment