aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sample/test.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e09dfe8a4d..ef97c7b1bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Dec 21 10:43:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * sample/test.rb: rescue exception.
+
Sat Dec 20 18:28:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dln.c (dln_find_1): supplements an extension for executable
diff --git a/sample/test.rb b/sample/test.rb
index 34e96204af..5448a40ba5 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -660,8 +660,8 @@ begin
raise $string
end
test_ok(false)
-rescue
- test_ok(true) if $! == $string
+rescue => e
+ test_ok(true) if $! == e
end
# exception in ensure clause