WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 236528
[run-webkit-tests] Do not try and read from /dev/null
https://bugs.webkit.org/show_bug.cgi?id=236528
Summary
[run-webkit-tests] Do not try and read from /dev/null
Jonathan Bedard
Reported
2022-02-11 14:46:59 PST
We should not try to read from /dev/null. While some distributions define this behavior well, Darwin, notably, does not. Use PIPE instead.
Attachments
Patch
(3.11 KB, patch)
2022-02-11 14:51 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-02-11 14:48:13 PST
<
rdar://problem/88836868
>
Jonathan Bedard
Comment 2
2022-02-11 14:50:01 PST
Stumbled into this when investigating
https://bugs.webkit.org/show_bug.cgi?id=230513
. This change isn't implicated in that bug, but we should still fix this.
Jonathan Bedard
Comment 3
2022-02-11 14:51:53 PST
Created
attachment 451749
[details]
Patch
Alexey Proskuryakov
Comment 4
2022-02-11 16:09:48 PST
Comment on
attachment 451749
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=451749&action=review
> Tools/ChangeLog:9 > + While writing to /dev/null is well defined, reading from it is not. Do not
I didn't know this. What is the source of this information? That said, the patch removes more code than it adds, and webkitpy tests pass, so it's good.
Jonathan Bedard
Comment 5
2022-02-11 16:45:42 PST
Man page for 'null': NAME null – the null device DESCRIPTION The null device accepts and reads data as any ordinary (and willing) file - but throws it away. The length of the null device is always zero. FILES /dev/null HISTORY A null device appeared in Version 7 AT&T UNIX. Notably, says nothing about what happens if you try and read from this file.
EWS
Comment 6
2022-02-12 17:19:59 PST
Committed
r289703
(
247188@main
): <
https://commits.webkit.org/247188@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 451749
[details]
.
Alexey Proskuryakov
Comment 7
2022-02-12 18:05:54 PST
Reading from /dev/null is standardized,
https://pubs.opengroup.org/onlinepubs/9699919799/
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug