Skip to content

Commit 18c7fc6

Browse files
committed
[compiler-rt] [test] Consume stderr from the subprocess for getting page size
This avoids dozens of instances of benign error messages being printed when running the tests on e.g. Windows: Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'os' has no attribute 'sysconf'
1 parent 53dfdf7 commit 18c7fc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/test/lit.common.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ def target_page_size():
970970
shell=True,
971971
stdin=subprocess.PIPE,
972972
stdout=subprocess.PIPE,
973+
stderr=subprocess.PIPE,
973974
)
974975
out, err = proc.communicate(b'import os; print(os.sysconf("SC_PAGESIZE"))')
975976
return int(out)

0 commit comments

Comments
 (0)