aboutsummaryrefslogtreecommitdiffstats
path: root/erts/test/otp_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-01-20 07:25:48 +0100
committerBjörn Gustavsson <[email protected]>2010-01-20 10:43:20 +0100
commite7433c73df70ff0cb20e64548cd9c74021ac0c68 (patch)
treee92d2a4edf5260cd15d56e5cc5aae41c1a01c7df /erts/test/otp_SUITE.erl
parentb408b344732b5a20d996d1cb88a40a3e46247271 (diff)
downloadotp-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/otp_SUITE.erl')
-rw-r--r--erts/test/otp_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/test/otp_SUITE.erl b/erts/test/otp_SUITE.erl
index c6769743dd..7a2f346b34 100644
--- a/erts/test/otp_SUITE.erl
+++ b/erts/test/otp_SUITE.erl
@@ -24,7 +24,8 @@
obsolete_but_not_deprecated/1,call_to_deprecated/1,
call_to_size_1/1,strong_components/1]).
--include("test_server.hrl").
+-include_lib("test_server/include/test_server.hrl").
+
-import(lists, [filter/2,foldl/3,foreach/2]).
all(suite) ->