[erlang-bugs] Common Test problems with includes since 17.4

Peter Andersson peppe@REDACTED
Wed Jan 21 10:44:53 CET 2015


Thanks for the report Nico. I'll take a look at this and get back to you
asap.

Best,
Peter

Ericsson AB, Erlang/OTP

On 2015-01-20 14:24, Nico Kruber wrote:
> Since Erlang 17.4 Common Test seems to have problems with included .hrl files 
> outside of the folder the unit test resides in (even when passing the 
> appropriate "include" option). The make process succeeds but when the test is 
> actually run, a badarg is thrown:
>
> EXIT, reason {{badarg,{tree,macro,{attr,0,[],none},{macro,
> {var,0,'RT'},none}}},
> [{erl_syntax,concrete,1,[{file,"erl_syntax.erl"},{line,6188}]},
>  {erl_syntax,concrete_list,1, [{file,"erl_syntax.erl"},{line,6192}]},
>  {erl_syntax,concrete_list,1, [{file,"erl_syntax.erl"},{line,6192}]},
>  {erl_syntax,concrete,1,[{file,"erl_syntax.erl"},{line,6162}]},
>  {erl_syntax,concrete,1,[{file,"erl_syntax.erl"},{line,6159}]},
>  {erl_syntax,concrete_list,1, [{file,"erl_syntax.erl"},{line,6192}]},
>  {erl_syntax,concrete_list,1, [{file,"erl_syntax.erl"},{line,6192}]},
>  {erl_syntax,concrete,1,[{file,"erl_syntax.erl"},{line,6162}]}]}
>
> == Steps to reproduce ===
>
> * copy the attached test_SUITE.erl into a test folder and put test_SUITE.hrl 
> into a sub-folder named "include"
> * run any of these two commands:
> ct_run -include "include" -suite test_SUITE
> CT_INCLUDE_PATH=include ct_run -suite test_SUITE
>
> => if the .hrl file is put into the test folder, everything is fine though
>
>
>
> Nico
>
>
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20150121/55bd5bc3/attachment.htm>


More information about the erlang-bugs mailing list