# files already in /cores/ at this point. This is being done to prevent
# inadvertently flooding the CI machines with dumps.
if [[ ! -d "/cores" || ! "$(ls -A /cores)" ]]; then
- # TODO: Re-enable core dumps - https://github.com/dotnet/runtime/issues/65000
- # Temporarily disabling core dumps on osx as runtime work items uploading dumps
- # are affecting the entire queue
- # ulimit -c unlimited
- ulimit -c 0
+ ulimit -c unlimited
fi
elif [[ "$(uname -s)" == "Linux" ]]; then
}
}
+ [ConditionalFact(nameof(NotMobileAndRemoteExecutable))]
+ [OuterLoop("SIGQUIT will generate a coredump")]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/65000", TestPlatforms.OSX)] // large (~6 GB) coredump on OSX leads to timeout on upload
+ public void SignalCanCancelTermination_ExpectedCrash()
+ {
+ SignalCanCancelTermination(PosixSignal.SIGQUIT, false, 131);
+ }
+
[ConditionalTheory(nameof(NotMobileAndRemoteExecutable))]
[InlineData(PosixSignal.SIGINT, true, 0)]
[InlineData(PosixSignal.SIGINT, false, 130)]
[InlineData(PosixSignal.SIGTERM, true, 0)]
[InlineData(PosixSignal.SIGTERM, false, 143)]
[InlineData(PosixSignal.SIGQUIT, true, 0)]
- [InlineData(PosixSignal.SIGQUIT, false, 131)]
public void SignalCanCancelTermination(PosixSignal signal, bool cancel, int expectedExitCode)
{
// Mono doesn't restore and call SIG_DFL on SIGQUIT.