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 6d1ca25 commit 8a67c13Copy full SHA for 8a67c13
test/truffle/cexts/backtraces/bin/backtraces
@@ -1,12 +1,12 @@
1
#!/usr/bin/env ruby
2
-
3
require 'backtraces'
4
5
TEST_DIR = File.expand_path("../..", __FILE__)
+SRC_DIR = File.expand_path("../../../../../..", __FILE__)
6
7
def puts_backtrace(backtrace)
8
- puts backtrace.gsub(TEST_DIR, '')
9
- .gsub(Truffle::Boot.ruby_home, '')
+ puts backtrace.gsub(Truffle::Boot.ruby_home, '')
+ .gsub(TEST_DIR, '').gsub(SRC_DIR, '')
10
.gsub(/\/(cext\.rb|cext_ruby\.rb|ruby\.c|qsort\.c):(\d+:)?/, '/\1:n:')
11
.gsub(/@\h+/, '@HEXA')
12
.gsub(/\{id: \d+ name: [^}]+}/, 'BLOCKINFO')
0 commit comments