forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fuchsia] Stop relying on /dev/null in tests.
ProcessUtilTest.FDRemappingIncludesStdio opens /dev/null on other Posix systems. The fd returned from fdio_fd_create_null can't be cloned, so we use a temporary file on Fuchsia in place of /dev/null. Various MessageAttachmentSet tests use /dev/null just for the sake of having an fd. Use fdio_fd_create_null() to get the fd rather than open. Bug: 1256502 Change-Id: Ifd5bb3e8eba6f0b77854e8af9d15e5a67c812352 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3257280 Commit-Queue: Greg Thompson <[email protected]> Commit-Queue: Daniel Cheng <[email protected]> Auto-Submit: Greg Thompson <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Benjamin Lerman <[email protected]> Reviewed-by: Tom Sepez <[email protected]> Cr-Commit-Position: refs/heads/main@{#939491}
- Loading branch information
Showing
5 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
}, | ||
"sandbox": { | ||
"dev": [ | ||
"null", | ||
"zero" | ||
], | ||
"features": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters