mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
os.read(fd, 1) returns b'' on MacOS when the child process exits, whereas it must be throwing an OSError on other platforms.
This commit is contained in:
@@ -1734,6 +1734,9 @@ class VlTest:
|
||||
try:
|
||||
data = os.read(fd, 1)
|
||||
self._run_output(data, logfh, tee)
|
||||
# Parent detects child termination by checking for b''
|
||||
if not data:
|
||||
break
|
||||
except OSError:
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user