We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b641f commit e9c9d32Copy full SHA for e9c9d32
spec/truffle/tools_spec.rb
@@ -29,6 +29,24 @@
29
end
30
31
32
+ describe "SIGQUIT" do
33
+ it "shows Java stacktraces" do
34
+ code = 'Process.kill :SIGQUIT, Process.pid; sleep 1'
35
+ out = ruby_exe(code, args: "2>&1")
36
+ out.should.include?("Full thread dump")
37
+ out.should.include?("RubyLauncher.runRubyMain")
38
+ end
39
40
+
41
+ describe "SIGALRM" do
42
+ it "shows Ruby backtraces" do
43
+ code = 'Process.kill :SIGALRM, Process.pid; sleep 1'
44
45
+ out.should.include?("All Thread and Fiber backtraces:")
46
+ out.should.include?(":in `show_backtraces'")
47
48
49
50
describe "--coverage" do
51
before :each do
52
@file = tmp("main.rb")
0 commit comments