summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-01-27 14:34:54 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-01-27 14:34:54 +0900
commit364c47610f6349bc3059ff6435d856438befec17 (patch)
treeb94efa7653c1046b6f84190ca69f44d91ac40774 /test/t
parent59464f35285e65598bca94ad9e77be6848a8e8be (diff)
downloadmruby-364c47610f6349bc3059ff6435d856438befec17.tar.gz
mruby-364c47610f6349bc3059ff6435d856438befec17.zip
Fixed backtrace message for top-level blocks; fix #4936
In top-level, `mid` is `NULL`. We used to ignore 'mid` update for `NULL`.
Diffstat (limited to 'test/t')
-rw-r--r--test/t/exception.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index a6f69eef6..c9afeb61a 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -400,7 +400,7 @@ assert('GC in rescue') do
end
rescue => exception
GC.start
- assert_equal("#{__FILE__}:#{line}:in call",
+ assert_equal("#{__FILE__}:#{line}",
exception.backtrace.first)
end
end
@@ -418,7 +418,7 @@ assert('Method call in rescue') do
rescue => exception
[3].each do
end
- assert_equal("#{__FILE__}:#{line}:in call",
+ assert_equal("#{__FILE__}:#{line}",
exception.backtrace.first)
end
end