diff options
author | Bryan Paxton <paxtonb@cargotel.com> | 2018-06-07 11:11:11 -0500 |
---|---|---|
committer | Bryan Paxton <paxtonb@cargotel.com> | 2018-06-08 18:09:24 -0500 |
commit | d1fc937515b312c1e5129e9e435e5b462f34b874 (patch) | |
tree | fcb132d8c5c42dd87b7024121bb60e58fd46d0ca /test | |
parent | 2c10bc97248e78e2aef1cdb8f87dd300ce954cca (diff) |
Abort if erl_first_files is not a list of strings
- resolves #1645
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_utils_SUITE.erl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl index e4a5bd3..233fcff 100644 --- a/test/rebar_utils_SUITE.erl +++ b/test/rebar_utils_SUITE.erl @@ -32,7 +32,8 @@ blacklisted_otp_version/1, sh_does_not_miss_messages/1, tup_merge/1, - proxy_auth/1]). + proxy_auth/1, + is_list_of_strings/1]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). @@ -48,7 +49,7 @@ all() -> [{group, args_to_tasks}, sh_does_not_miss_messages, tup_merge, - proxy_auth]. + proxy_auth, is_list_of_strings]. groups() -> [{args_to_tasks, [], [empty_arglist, @@ -312,3 +313,9 @@ restore_proxy_env(ProxyEnvKey, false) -> os:putenv(ProxyEnvKey, ""); restore_proxy_env(ProxyEnvKey, ProxySpec) -> os:putenv(ProxyEnvKey, ProxySpec). + +is_list_of_strings(_Config) -> + ?assert(rebar_utils:is_list_of_strings(["foo"])), + ?assert(rebar_utils:is_list_of_strings([])), + ?assert(rebar_utils:is_list_of_strings("")), + ?assert(rebar_utils:is_list_of_strings("foo") == false). |