diff options
author | Björn Gustavsson <[email protected]> | 2016-04-17 08:03:09 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-18 07:39:17 +0200 |
commit | 7cc68fb4820f68e21867bb8f16172e8f72d04edc (patch) | |
tree | 0501b3e46cce1a0c358df78a7c2937d34cadc85f /lib/debugger/test/int_SUITE.erl | |
parent | 04e79317308588af47f236469e9d286dccc177ec (diff) | |
download | otp-7cc68fb4820f68e21867bb8f16172e8f72d04edc.tar.gz otp-7cc68fb4820f68e21867bb8f16172e8f72d04edc.tar.bz2 otp-7cc68fb4820f68e21867bb8f16172e8f72d04edc.zip |
int_SUITE: Fix interpretable/1 on cross-compiled platforms
c7e82c6b406b teached the debugger to use the 'source' key
in Mod:module_info/1 to help locate the source code
corresponding to a BEAM file. The new test that was added
at the same time will fail if the test suites were
cross-compiled on another computer (i.e., the 'source' key
would not point to the source file on the target computer).
Avoid the problem by letting int_SUITE:init_per_suite/1 compile
the BEAM files. That will ensure that 'source' keys points to
the actual source file.
Diffstat (limited to 'lib/debugger/test/int_SUITE.erl')
-rw-r--r-- | lib/debugger/test/int_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/debugger/test/int_SUITE.erl b/lib/debugger/test/int_SUITE.erl index af8f5256cb..38b43bdcb0 100644 --- a/lib/debugger/test/int_SUITE.erl +++ b/lib/debugger/test/int_SUITE.erl @@ -71,6 +71,14 @@ groups() -> {append, [], [append_1, append_2]}]. init_per_suite(Config) -> + DataDir = proplists:get_value(data_dir, Config), + {ok,OldCwd} = file:get_cwd(), + try + ok = file:set_cwd(DataDir), + make:all() + after + file:set_cwd(OldCwd) + end, Config. end_per_suite(_Config) -> |