summaryrefslogtreecommitdiff
path: root/test/rebar_xref_eunit.erl
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2015-10-12 13:48:09 +0100
committerLuis Rascão <luis.rascao@gmail.com>2015-10-25 15:20:53 +0000
commitea84fdaf31fddab55ba3d9630710b21e5db209bc (patch)
treee7591d73546a068c34d22a72fcd3e895e9877b0e /test/rebar_xref_eunit.erl
parentb870e061a3038039e1721723b17c8e8cd27b82b5 (diff)
downloadrebar-ea84fdaf31fddab55ba3d9630710b21e5db209bc.tar.gz
Fix windows eunit tests
File tests: windows file operations should abort on error the same as unix operations invoked through sh. Also windows does not support the '?' character in filenames. Eunit tests: the 'All' prefix is missing on the 'x tests passed' message. Eunit only prints the 'All' prefix if there are more than 2 passed tests, dropping the prefix on the match works for all cases.
Diffstat (limited to 'test/rebar_xref_eunit.erl')
-rw-r--r--test/rebar_xref_eunit.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rebar_xref_eunit.erl b/test/rebar_xref_eunit.erl
index 341fe2e..f32ea46 100644
--- a/test/rebar_xref_eunit.erl
+++ b/test/rebar_xref_eunit.erl
@@ -192,8 +192,8 @@ prepare_rebar_script() ->
{unix, _} ->
[] = os:cmd("chmod u+x " ++ Rebar);
{win32, _} ->
- {ok, _} = file:copy(?REBAR_SCRIPT ++ ".bat",
- ?TMP_DIR ++ "rebar.bat")
+ {ok, _} = file:copy(?REBAR_SCRIPT ++ ".cmd",
+ ?TMP_DIR ++ "rebar.cmd")
end.
rebar() ->