mirror of
https://github.com/valitydev/yamerl.git
synced 2024-11-06 02:45:23 +00:00
Fix include directories given to cover:compile/2
The directories, taken from src/Emakefile are relative to src/, not testsuite/: they need to be adapted.
This commit is contained in:
parent
3c7db77ed7
commit
828eb0aead
@ -32,7 +32,18 @@ setup() ->
|
||||
cover_compile(Emakefile).
|
||||
|
||||
cover_compile([{Mods, Options} | Rest]) ->
|
||||
cover_compile2(Mods, Options),
|
||||
%% Include directories are relative to $top_builddir/src in
|
||||
%% src/Emakefile. We must prepend this path to each directory. If
|
||||
%% "Dir" is an absolute directory, filename:join/1 won't change it.
|
||||
Options1 = [
|
||||
case Option of
|
||||
{i, Dir} -> {i, filename:join([?top_builddir, "src", Dir])};
|
||||
_ -> Option
|
||||
end
|
||||
|| Option <- Options
|
||||
],
|
||||
io:format(standard_error, "Options1 = ~p~n", [Options1]),
|
||||
cover_compile2(Mods, Options1),
|
||||
cover_compile(Rest);
|
||||
cover_compile([]) ->
|
||||
ok.
|
||||
|
Loading…
Reference in New Issue
Block a user