Proc test: Allow root mount pathname to be non-root.
The test was expecting that the root mount pathname was "/", but it doesn't need to be. Only the mount point actually should be "/" (otherwise it is not the root). PiperOrigin-RevId: 316968025
This commit is contained in:
parent
505e8f4e3d
commit
28a5c55bb6
|
@ -1921,7 +1921,7 @@ TEST(ProcSelfMountinfo, RequiredFieldsArePresent) {
|
|||
AllOf(
|
||||
// Root mount.
|
||||
ContainsRegex(
|
||||
R"([0-9]+ [0-9]+ [0-9]+:[0-9]+ / / (rw|ro).*- \S+ \S+ (rw|ro)\S*)"),
|
||||
R"([0-9]+ [0-9]+ [0-9]+:[0-9]+ /\S* / (rw|ro).*- \S+ \S+ (rw|ro)\S*)"),
|
||||
// Proc mount - always rw.
|
||||
ContainsRegex(
|
||||
R"([0-9]+ [0-9]+ [0-9]+:[0-9]+ / /proc rw.*- \S+ \S+ rw\S*)")));
|
||||
|
|
Loading…
Reference in New Issue