aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/ruby/core/file/utime_spec.rb8
-rw-r--r--version.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/spec/ruby/core/file/utime_spec.rb b/spec/ruby/core/file/utime_spec.rb
index 03adc76efe..9c198af18b 100644
--- a/spec/ruby/core/file/utime_spec.rb
+++ b/spec/ruby/core/file/utime_spec.rb
@@ -72,11 +72,13 @@ describe "File.utime" do
platform_is :linux do
platform_is wordsize: 64 do
- it "allows Time instances in the far future to set mtime and atime" do
+ it "allows Time instances in the far future to set mtime and atime (but some filesystems limit it up to 2446-05-10)" do
+ # https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps
+ # "Therefore, timestamps should not overflow until May 2446."
time = Time.at(1<<44)
File.utime(time, time, @file1)
- File.atime(@file1).year.should == 559444
- File.mtime(@file1).year.should == 559444
+ [559444, 2446].should.include? File.atime(@file1).year
+ [559444, 2446].should.include? File.mtime(@file1).year
end
end
end
diff --git a/version.h b/version.h
index 7f37a34fdf..70cd6acdd3 100644
--- a/version.h
+++ b/version.h
@@ -2,11 +2,11 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 123
+#define RUBY_PATCHLEVEL 124
#define RUBY_RELEASE_YEAR 2020
#define RUBY_RELEASE_MONTH 9
-#define RUBY_RELEASE_DAY 7
+#define RUBY_RELEASE_DAY 9
#include "ruby/version.h"