-
-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Truffle] Spec for set_trace_func being optimised away - which is bro…
…ken.
- Loading branch information
1 parent
0a16107
commit 905db5f
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module KernelSetTraceFuncFixtures | ||
|
||
def self.method_with_many_lines(a, b) | ||
x = a | ||
y = b | ||
z = x + y | ||
z | ||
end | ||
|
||
end | ||
|
||
PETests.tests do | ||
|
||
describe "Kernel" do | ||
|
||
describe "set_trace_func" do | ||
|
||
begin | ||
set_trace_func proc { |event, file, line, id, binding, classname| | ||
} | ||
|
||
broken_example "still has Fixnum#+ Fixnum" do | ||
truffle_assert_constant KernelSetTraceFuncFixtures.method_with_many_lines(14, 2) | ||
end | ||
ensure | ||
set_trace_func nil | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters