dotnet/runtime

dump system log on macos when test run terminates unexpectedly

Open

#98,132 创建于 2024年2月7日

在 GitHub 查看
 (5 评论) (0 反应) (1 负责人)C# (5,445 fork)batch import
area-Infrastructure-librarieshelp wanted

仓库指标

Star
 (17,886 star)
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).

贡献者指南