diff options
| -rw-r--r-- | test/unit_SUITE.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit_SUITE.erl b/test/unit_SUITE.erl index 6582c24b1e..3ffe3f013e 100644 --- a/test/unit_SUITE.erl +++ b/test/unit_SUITE.erl @@ -882,8 +882,13 @@ listing_plugins_from_multiple_directories(Config) -> {FirstDir, plugin_both, "1"}, {SecondDir, plugin_both, "2"}]), - %% Everything was collected from both directories, plugin with higher version should take precedence - Path = FirstDir ++ ":" ++ SecondDir, + %% Everything was collected from both directories, plugin with higher + %% version should take precedence + PathSep = case os:type() of + {win32, _} -> ";"; + _ -> ":" + end, + Path = FirstDir ++ PathSep ++ SecondDir, Got = lists:sort([{Name, Vsn} || #plugin{name = Name, version = Vsn} <- rabbit_plugins:list(Path)]), Expected = [{plugin_both, "2"}, {plugin_first_dir, "3"}, {plugin_second_dir, "4"}], case Got of |
