aboutsummaryrefslogtreecommitdiffstats
path: root/testing/erlang/0060-set-disksup_posix_only-to-true.patch
diff options
context:
space:
mode:
authorMarlus Saraiva <marlus.saraiva@gmail.com>2015-07-16 17:05:46 +0000
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2015-07-16 19:17:46 +0200
commitc70458249b68ce79fd5b5c8c7d6c5fe63794644e (patch)
treebfe5cc62f8072faa5a77d7c5437b1b49be2346b7 /testing/erlang/0060-set-disksup_posix_only-to-true.patch
parentf44e2957923893a3b60c19fbbcb76ace4a385388 (diff)
downloadaports-c70458249b68ce79fd5b5c8c7d6c5fe63794644e.tar.gz
aports-c70458249b68ce79fd5b5c8c7d6c5fe63794644e.tar.bz2
aports-c70458249b68ce79fd5b5c8c7d6c5fe63794644e.tar.xz
testing/erlang: Fixing os_mon issues
Removing pre-build "os_mon/ebin" files so they can be properly rebuilt without nteventlog. Setting "disksup_posix_only=true" so functions that depend on get_disk_data, which depens on the "df" command, can work.
Diffstat (limited to 'testing/erlang/0060-set-disksup_posix_only-to-true.patch')
-rw-r--r--testing/erlang/0060-set-disksup_posix_only-to-true.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/erlang/0060-set-disksup_posix_only-to-true.patch b/testing/erlang/0060-set-disksup_posix_only-to-true.patch
new file mode 100644
index 0000000000..a32c60c200
--- /dev/null
+++ b/testing/erlang/0060-set-disksup_posix_only-to-true.patch
@@ -0,0 +1,22 @@
+--- otp_src_18.0/lib/os_mon/src/disksup.erl
++++ otp_src_18.0-fixed/lib/os_mon/src/disksup.erl
+@@ -87,7 +87,7 @@
+
+ param_default(disk_space_check_interval) -> 30;
+ param_default(disk_almost_full_threshold) -> 0.80;
+-param_default(disksup_posix_only) -> false.
++param_default(disksup_posix_only) -> true.
+
+ %%----------------------------------------------------------------------
+ %% gen_server callbacks
+--- otp_src_18.0/lib/os_mon/test/disksup_SUITE.erl
++++ otp_src_18.0-fixed/lib/os_mon/test/disksup_SUITE.erl
+@@ -337,7 +337,7 @@
+ [];
+ restart(Config) when is_list(Config) ->
+ ok = application:set_env(os_mon, start_disksup, true),
+- ok = application:set_env(os_mon, disksup_posix_only, false),
++ ok = application:set_env(os_mon, disksup_posix_only, true),
+ {ok, _Pid} = supervisor:restart_child(os_mon_sup, disksup),
+ ok.
+