dotnet/runtime

dump system log on macos when test run terminates unexpectedly

開放

#98,132 建立於 2024年2月7日

 (5 則留言) (0 個反應) (1 位負責人)C# (5,445 個分叉)batch import
area-Infrastructure-librarieshelp wanted

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

see context in https://github.com/dotnet/runtime/pull/97624

we want to dump the last few minutes/few tens of lines of the system log when unit tests terminate with an error. dmesg works on Linux, but gets this on macOS

Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg

@am11 offered to make it use log on macOS (I don't have hardware to verify on).

貢獻者指南