Skip to content

Commit 8a67c13

Browse files
committed
Exclude the source dir for the C-ext backtraces test
* Now that it differs from the Ruby home.
1 parent 6d1ca25 commit 8a67c13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/truffle/cexts/backtraces/bin/backtraces

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env ruby
2-
32
require 'backtraces'
43

54
TEST_DIR = File.expand_path("../..", __FILE__)
5+
SRC_DIR = File.expand_path("../../../../../..", __FILE__)
66

77
def puts_backtrace(backtrace)
8-
puts backtrace.gsub(TEST_DIR, '')
9-
.gsub(Truffle::Boot.ruby_home, '')
8+
puts backtrace.gsub(Truffle::Boot.ruby_home, '')
9+
.gsub(TEST_DIR, '').gsub(SRC_DIR, '')
1010
.gsub(/\/(cext\.rb|cext_ruby\.rb|ruby\.c|qsort\.c):(\d+:)?/, '/\1:n:')
1111
.gsub(/@\h+/, '@HEXA')
1212
.gsub(/\{id: \d+ name: [^}]+}/, 'BLOCKINFO')

0 commit comments

Comments
 (0)