diff options
author | Björn Gustavsson <[email protected]> | 2014-02-14 10:23:19 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-02-20 12:44:23 +0100 |
commit | 04d156de2527b796c6352b1ef138ec59fbcff587 (patch) | |
tree | af41656c9632b1d8ad083d0a2a7153158a93a0eb /lib/tools | |
parent | 1c8a57ce030907596bcddf14ce4b676f6adb3a57 (diff) | |
download | otp-04d156de2527b796c6352b1ef138ec59fbcff587.tar.gz otp-04d156de2527b796c6352b1ef138ec59fbcff587.tar.bz2 otp-04d156de2527b796c6352b1ef138ec59fbcff587.zip |
With --enable-native-libs, skip eprof_SUITE:basic_option/1
eprof does not work on native-compiled code. Since
eprof_SUITE:basic_option/1 does profiling on the lists modules,
the test case will fail if --enable-native-libs is used.
Diffstat (limited to 'lib/tools')
-rw-r--r-- | lib/tools/test/eprof_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tools/test/eprof_SUITE.erl b/lib/tools/test/eprof_SUITE.erl index 26685a6a84..1227d5b841 100644 --- a/lib/tools/test/eprof_SUITE.erl +++ b/lib/tools/test/eprof_SUITE.erl @@ -127,6 +127,14 @@ basic(Config) when is_list(Config) -> ok. basic_option(Config) when is_list(Config) -> + %% Eprof is not supported on native-compile code. + case lists:module_info(native_addresses) of + [] -> basic_option_1(Config); + [_|_] -> {skip,"lists is native-compiled"} + end. + +basic_option_1(Config) -> + %% load eprof_test and change directory {ok, OldCurDir} = file:get_cwd(), |