File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ defmodule Kernel.ParallelRequire do
32
32
:ok ->
33
33
result
34
34
:error ->
35
- IO . puts :stderr , "\n Loading files failed due to warnings while using the --warnings-as-errors option"
35
+ IO . puts :stderr , "\n Execution failed due to warnings while using the --warnings-as-errors option"
36
36
exit ( { :shutdown , 1 } )
37
37
end
38
38
end
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ defmodule Kernel.ParallelRequireTest do
17
17
assert catch_exit ( Kernel.ParallelRequire . files fixtures ) == { :shutdown , 1 }
18
18
end
19
19
20
- assert msg =~ "Loading files failed due to warnings while using the --warnings-as-errors option\n "
20
+ assert msg =~ "Execution failed due to warnings while using the --warnings-as-errors option\n "
21
21
after
22
22
Code . compiler_options ( warnings_as_errors: warnings_as_errors )
23
23
end
Original file line number Diff line number Diff line change @@ -42,20 +42,15 @@ defmodule Mix.Compilers.Test do
42
42
43
43
test_files ->
44
44
try do
45
- spawn_link ( fn ->
46
- try do
47
- Kernel.ParallelRequire . files ( test_files , parallel_require_callbacks )
48
- catch
49
- :error , value ->
50
- exit ( { value , System . stacktrace ( ) } )
51
- :throw , value ->
52
- exit ( { { :nocatch , value } , System . stacktrace ( ) } )
53
- after
54
- ExUnit.Server . cases_loaded ( )
55
- end
56
- end )
57
-
58
- % { failures: failures } = results = ExUnit . run ( )
45
+ task = Task . async ( ExUnit , :run , [ ] )
46
+
47
+ try do
48
+ Kernel.ParallelRequire . files ( test_files , parallel_require_callbacks )
49
+ after
50
+ ExUnit.Server . cases_loaded ( )
51
+ end
52
+
53
+ % { failures: failures } = results = Task . await ( task , :infinity )
59
54
60
55
if failures == 0 do
61
56
agent_write_manifest ( stale_manifest_pid )
You can’t perform that action at this time.
0 commit comments