dotnet/runtime

dump system log on macos when test run terminates unexpectedly

Open

#98.132 aberto em 7 de fev. de 2024

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)C# (5.445 forks)batch import
area-Infrastructure-librarieshelp wanted

Métricas do repositório

Stars
 (17.886 stars)
Métricas de merge de PR
 (Mesclagem média 12d 11h) (661 fundiu PRs em 30d)

Description

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).

Guia do colaborador