summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sample/test.rb4
-rw-r--r--version.h6
3 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index d36d26b8f4..91b6f59bcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jun 15 12:14:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * sample/test.rb: fix to show line information whether test succeeds.
+
Thu Jun 14 17:16:05 2007 Tanaka Akira <akr@fsij.org>
* eval_load.c (Init_load): delay allocating an array for rb_load_path
diff --git a/sample/test.rb b/sample/test.rb
index da44b180f3..18c914d5b3 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -14,10 +14,10 @@ end
def test_ok(cond,n=1)
$testnum+=1
$ntest+=1
+ where = (st = caller(n)) ? st[0] : "caller error! (n=#{n}, trace=#{caller(0).join(', ')}"
if cond
- printf "ok %d\n", $testnum
+ printf "ok %d (%s)\n", $testnum, where
else
- where = (st = caller(n)) ? st[0] : "caller error! (n=#{n}, trace=#{caller(0).join(', ')}"
printf "not ok %s %d -- %s\n", $what, $testnum, where
$failed+=1
end
diff --git a/version.h b/version.h
index 713e632505..fa07e248e4 100644
--- a/version.h
+++ b/version.h
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
-#define RUBY_RELEASE_DATE "2007-06-14"
+#define RUBY_RELEASE_DATE "2007-06-15"
#define RUBY_VERSION_CODE 190
-#define RUBY_RELEASE_CODE 20070614
+#define RUBY_RELEASE_CODE 20070615
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 14
+#define RUBY_RELEASE_DAY 15
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];