diff options
author | Siri Hansen <[email protected]> | 2016-03-01 16:46:35 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2016-03-01 16:51:30 +0100 |
commit | 51349126632b3ce589f217abe5dcfb7b1e47faa1 (patch) | |
tree | 6a1a285d7b45f44525367483918cc8dcf570440c /lib/test_server/src/test_server_sup.erl | |
parent | 6f8997c001a17b9d9322e26757690489d6111dac (diff) | |
download | otp-51349126632b3ce589f217abe5dcfb7b1e47faa1.tar.gz otp-51349126632b3ce589f217abe5dcfb7b1e47faa1.tar.bz2 otp-51349126632b3ce589f217abe5dcfb7b1e47faa1.zip |
Set dir for slave node's erl_crash.dump
This was earlier filename:dirname(code:which(test_server)). On
Microsoft Windows, this pointed to a directory under c:/Program Files,
and in later versions this directory is no longer writable. The
framework (common_test) log dir is now used instead.
Diffstat (limited to 'lib/test_server/src/test_server_sup.erl')
-rw-r--r-- | lib/test_server/src/test_server_sup.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test_server/src/test_server_sup.erl b/lib/test_server/src/test_server_sup.erl index fc2cfd57bd..1c0eb18d70 100644 --- a/lib/test_server/src/test_server_sup.erl +++ b/lib/test_server/src/test_server_sup.erl @@ -594,7 +594,8 @@ cleanup_crash_dumps() -> delete_files(Dumps). crash_dump_dir() -> - filename:dirname(code:which(?MODULE)). + {ok,Dir} = test_server_sup:framework_call(get_log_dir,[]), + Dir. tar_crash_dumps() -> Dir = crash_dump_dir(), |