Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
elixir
0001-Make-tests-pass-in-2020-8688.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Make-tests-pass-in-2020-8688.patch of Package elixir
From fd128e9d20417cf4313c25f8e462aa05ce5acfce Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <githubbmw@lsmod.de> Date: Thu, 24 Jan 2019 13:50:15 +0000 Subject: [PATCH] Make tests pass in 2020 (#8688) Using only 2038 to keep 32-bit UNIX systems happy. --- lib/mix/test/mix/tasks/compile.elixir_test.exs | 12 ++++++------ lib/mix/test/mix/tasks/compile.xref_test.exs | 2 +- lib/mix/test/mix/tasks/format_test.exs | 4 ++-- lib/mix/test/mix/tasks/loadconfig_test.exs | 2 +- lib/mix/test/mix/utils_test.exs | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/mix/test/mix/tasks/compile.elixir_test.exs b/lib/mix/test/mix/tasks/compile.elixir_test.exs index 38a47f294..37f080699 100644 --- a/lib/mix/test/mix/tasks/compile.elixir_test.exs +++ b/lib/mix/test/mix/tasks/compile.elixir_test.exs @@ -123,7 +123,7 @@ test "compiles mtime changed files" do Mix.shell.flush purge [A, B] - future = {{2020, 1, 1}, {0, 0, 0}} + future = {{2038, 1, 1}, {0, 0, 0}} File.touch!("lib/a.ex", future) Mix.Tasks.Compile.Elixir.run ["--verbose"] @@ -176,7 +176,7 @@ test "compiles dependent changed modules" do Mix.shell.flush purge [A, B] - future = {{2020, 1, 1}, {0, 0, 0}} + future = {{2038, 1, 1}, {0, 0, 0}} File.touch!("lib/b.ex", future) Mix.Tasks.Compile.Elixir.run ["--verbose"] @@ -225,7 +225,7 @@ def a, do: :ok purge [A, B] # Update local existing resource - File.touch!("lib/a.eex", {{2020, 1, 1}, {0, 0, 0}}) + File.touch!("lib/a.eex", {{2038, 1, 1}, {0, 0, 0}}) assert Mix.Tasks.Compile.Elixir.run(["--verbose"]) == :ok assert_received {:mix_shell, :info, ["Compiled lib/a.ex"]} refute_received {:mix_shell, :info, ["Compiled lib/b.ex"]} @@ -237,7 +237,7 @@ def a, do: :ok purge [A, B] # Update external existing resource - File.touch!(tmp, {{2020, 1, 1}, {0, 0, 0}}) + File.touch!(tmp, {{2038, 1, 1}, {0, 0, 0}}) assert Mix.Tasks.Compile.Elixir.run(["--verbose"]) == :ok assert_received {:mix_shell, :info, ["Compiled lib/a.ex"]} refute_received {:mix_shell, :info, ["Compiled lib/b.ex"]} @@ -335,7 +335,7 @@ defmodule B do Mix.shell.flush purge [A, B] - future = {{2020, 1, 1}, {0, 0, 0}} + future = {{2038, 1, 1}, {0, 0, 0}} File.touch!("lib/a.ex", future) Mix.Tasks.Compile.Elixir.run ["--verbose"] diff --git a/lib/mix/test/mix/tasks/compile.xref_test.exs b/lib/mix/test/mix/tasks/compile.xref_test.exs index b2f28e3cb..29737d152 100644 --- a/lib/mix/test/mix/tasks/compile.xref_test.exs +++ b/lib/mix/test/mix/tasks/compile.xref_test.exs @@ -54,7 +54,7 @@ test "xrefs if stale" do end [manifest] = Mix.Tasks.Compile.Elixir.manifests() - future = {{2020, 1, 1}, {0, 0, 0}} + future = {{2038, 1, 1}, {0, 0, 0}} File.touch!(manifest, future) Mix.Task.reenable("xref") -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor