summaryrefslogtreecommitdiff
path: root/systest
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-12-06 08:53:12 -0500
committerFred Hebert <mononcqc@ferd.ca>2017-12-06 08:53:12 -0500
commitf12871451f2c60bc35da053198ccc48d1b1db687 (patch)
tree0404d9c817ae3de555f1b1cc757d725af2beaf67 /systest
parentd45bacb73bd1a255a5042929a49c81ab298df946 (diff)
Safer purge switch
Rather than the caller having to think of what to purge or not, use erlang:check_process_code/2 to detect if the caller (rebar3) may die because of the operation. If so, do a soft purge with a conditional delete instead of a hard purge with a mandatory delete.
Diffstat (limited to 'systest')
-rw-r--r--systest/all_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/systest/all_SUITE.erl b/systest/all_SUITE.erl
index ba06a9c..6d2f14f 100644
--- a/systest/all_SUITE.erl
+++ b/systest/all_SUITE.erl
@@ -66,6 +66,7 @@ alias_clash(Config) ->
?assertNotEqual(nomatch,
re:run(Output, "Not adding provider default test from module rebar_prv_alias_test "
"because it already exists from module rebar_prv_alias_test")),
+ ok.
grisp_explode() ->
[{doc, "Don't force purge a plugin that runs the compile job itself"}].