diff options
author | Björn Gustavsson <[email protected]> | 2010-03-10 07:14:46 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-03-11 10:26:48 +0100 |
commit | dc1e683111376624644a9a60df86cb341f7a554d (patch) | |
tree | cc9d3ba7372da7f6bb86ba333c7d5b6bed268e08 /lib/asn1/test/testSeqOfIndefinite.erl | |
parent | a3202b05d648732b7d2afe3ad952782e5376a18d (diff) | |
download | otp-dc1e683111376624644a9a60df86cb341f7a554d.tar.gz otp-dc1e683111376624644a9a60df86cb341f7a554d.tar.bz2 otp-dc1e683111376624644a9a60df86cb341f7a554d.zip |
asn1 tests: Don't refer to $ERL_TOP in compiler options
On Windows, $ERL_TOP contains a cygwin-style pathname
that can be used in Makefiles to (for instance) include
other Makefiles, but must not be passed to non-cygwin programs
such as "erlc". Therefore, using compiler options such as
"-I $(ERL_TOP)/lib/test_server/include" will not work on
Windows.
Fix this problem by include "test_server.hrl" using
-include_lib() instead of -include(). That works because
-include_lib() searches for include files in the code path
without the need for any -I options.
Diffstat (limited to 'lib/asn1/test/testSeqOfIndefinite.erl')
-rw-r--r-- | lib/asn1/test/testSeqOfIndefinite.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/test/testSeqOfIndefinite.erl b/lib/asn1/test/testSeqOfIndefinite.erl index 8e8967572a..abee20fb4e 100644 --- a/lib/asn1/test/testSeqOfIndefinite.erl +++ b/lib/asn1/test/testSeqOfIndefinite.erl @@ -22,7 +22,7 @@ -export([compile/3]). -export([main/0]). --include("test_server.hrl"). +-include_lib("test_server/include/test_server.hrl"). %-record('Seq1',{bool1, int1, seq1 = asn1_DEFAULT}). %-record('Seq2',{seq2 = asn1_DEFAULT, bool2, int2}). |