diff options
author | Peter Lemenkov <lemenkov@redhat.com> | 2016-12-14 17:48:00 +0100 |
---|---|---|
committer | Peter Lemenkov <lemenkov@redhat.com> | 2016-12-14 17:48:00 +0100 |
commit | e17c3f87375a17760578de581fcc961d2ae609ac (patch) | |
tree | 9352bacf41ce8d16bbade9ffe2860e64a1c81d3c | |
parent | 088ed86ed8b46ca37d3df452daed78b808531199 (diff) | |
download | erlang-sd_notify-e17c3f87375a17760578de581fcc961d2ae609ac.tar.gz |
Run tests only if Erlang ver. is 19
Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>
-rw-r--r-- | test/sd_notify_test.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/sd_notify_test.erl b/test/sd_notify_test.erl index 09d74ee..32a8ac6 100644 --- a/test/sd_notify_test.erl +++ b/test/sd_notify_test.erl @@ -2,7 +2,11 @@ -include_lib("eunit/include/eunit.hrl"). + sd_notify_test_() -> + sd_notify_test_local(erlang:system_info(otp_release)). + +sd_notify_test_local("19") -> {ok, CWD} = file:get_cwd(), FakeNotifyUnixSockName = CWD ++ "/fake-notify-udp-sock-" ++ integer_to_list(erlang:phash2(make_ref())), TestMessage = integer_to_list(erlang:phash2(make_ref())), @@ -24,4 +28,6 @@ sd_notify_test_() -> ] - }. + }; +sd_notify_test_local(_) -> + []. |