diff options
author | Björn Gustavsson <[email protected]> | 2010-01-20 07:25:48 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-01-20 10:43:20 +0100 |
commit | e7433c73df70ff0cb20e64548cd9c74021ac0c68 (patch) | |
tree | e92d2a4edf5260cd15d56e5cc5aae41c1a01c7df /erts/test/erlc_SUITE.erl | |
parent | b408b344732b5a20d996d1cb88a40a3e46247271 (diff) | |
download | otp-e7433c73df70ff0cb20e64548cd9c74021ac0c68.tar.gz otp-e7433c73df70ff0cb20e64548cd9c74021ac0c68.tar.bz2 otp-e7433c73df70ff0cb20e64548cd9c74021ac0c68.zip |
system test: fix build of test suites on Windows
On Windows, the ERL_TOP environment variable contains
a path that only is valid for cygwin-enabled programs,
such as 'make'. It is not meaningful to pass the value
of $ERL_TOP in the -I option to the Erlang compiler,
because the Erlang emulator does not interpret cygwin
paths correctly. Therefore, -include("test_server.hrl")
will fail to find test_server.hrl.
Work around the problem by using -include_lib().
Diffstat (limited to 'erts/test/erlc_SUITE.erl')
-rw-r--r-- | erts/test/erlc_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/test/erlc_SUITE.erl b/erts/test/erlc_SUITE.erl index 1d944811aa..a8a658e5d8 100644 --- a/erts/test/erlc_SUITE.erl +++ b/erts/test/erlc_SUITE.erl @@ -23,7 +23,7 @@ -export([all/1, compile_erl/1, compile_yecc/1, compile_script/1, compile_mib/1, good_citizen/1, deep_cwd/1]). --include("test_server.hrl"). +-include_lib("test_server/include/test_server.hrl"). all(suite) -> [compile_erl, compile_yecc, compile_script, compile_mib, |