summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb')
-rw-r--r--spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb b/spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb
new file mode 100644
index 0000000000..875e97ffac
--- /dev/null
+++ b/spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb
@@ -0,0 +1,4 @@
+action = ScratchPad.recorded.pop
+ScratchPad << __FILE__
+action.call if action
+ScratchPad << caller_locations(0)[0].absolute_path