[erlang-bugs] unable to include ct.hrl

Balint Reczey <>
Wed Feb 27 11:47:29 CET 2008


Hi,

The ct module's documentation (http://erlang.org/doc/man/ct.html) says:

"The config macro is defined in ct.hrl. This macro should be used to
retrieve information from the Config variable sent to all test cases."

But when i want to include it in my module, erl complains about the
missing test_server.hrl:

foo.erl:
-module(foo).
-include_lib("common_test/include/ct.hrl").

:~$ erlc foo.erl 
./common_test/include/ct.hrl:1: can't find include file
"test_server.hrl"

In ct.hrl, test_server.hrl is included using "-include(...)" instead of
"-include_lib(...)" which would probably fix erlc's problem.

Regards,
Balint



More information about the erlang-bugs mailing list