diff --git a/lib/mix/test/mix/tasks/compile.app_test.exs b/lib/mix/test/mix/tasks/compile.app_test.exs index 3674bfcfb2..5390925460 100644 --- a/lib/mix/test/mix/tasks/compile.app_test.exs +++ b/lib/mix/test/mix/tasks/compile.app_test.exs @@ -66,6 +66,8 @@ defmodule Mix.Tasks.Compile.AppTest do test "generates .app file when changes happen" do in_fixture("no_mixfile", fn -> Mix.Project.push(MixTest.Case.Sample) + # Pre-create the compilation path to avoid mtime races + File.mkdir_p(Mix.Project.compile_path()) Mix.Tasks.Compile.Elixir.run([]) assert Mix.Tasks.Compile.App.run([]) == {:ok, []}