summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2017-05-26 13:48:43 +0200
committerJosé Valim <jose.valim@gmail.com>2017-05-26 15:32:01 +0200
commitbb274ee00540d50a899098fd5c9b0900ac1aa631 (patch)
tree631cb38a75f5671fd72c4728b783ad5e4a86576b
parentf11783111a434ae04b765a9510d16f056c91f515 (diff)
downloadelixir-bb274ee00540d50a899098fd5c9b0900ac1aa631.tar.gz
Kill leaked erl and epmd instances on Windows
-rw-r--r--.appveyor.yml2
-rw-r--r--Makefile6
2 files changed, 7 insertions, 1 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 0647781ce..31cc2dc4b 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -6,4 +6,4 @@ build_script:
before_test:
- cmd: set PATH=%PATH%;C:\Program Files\erl8.3\erts-8.3\bin
test_script:
- - cmd: C:\MinGW\msys\1.0\bin\make --keep-going test
+ - cmd: C:\MinGW\msys\1.0\bin\make --keep-going test_windows
diff --git a/Makefile b/Makefile
index eba7e2527..d850f11c0 100644
--- a/Makefile
+++ b/Makefile
@@ -196,6 +196,12 @@ zips: Precompiled.zip Docs.zip
test: test_erlang test_elixir
+test_windows: test test_taskkill
+
+test_taskkill:
+ taskkill //IM erl.exe //F //T //FI "MEMUSAGE gt 0"
+ taskkill //IM epmd.exe //F //T //FI "MEMUSAGE gt 0"
+
TEST_ERL = lib/elixir/test/erlang
TEST_EBIN = lib/elixir/test/ebin
TEST_ERLS = $(addprefix $(TEST_EBIN)/, $(addsuffix .beam, $(basename $(notdir $(wildcard $(TEST_ERL)/*.erl)))))