diff options
author | Richard Carlsson <[email protected]> | 2017-02-03 15:39:59 +0100 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2017-02-04 13:26:52 +0100 |
commit | 714ef59e3c3f6d765cbb60974c42ad111abf33e7 (patch) | |
tree | 0414aa837c963b670f24fd3293057bd0c2cdcaac /lib/stdlib | |
parent | f66f3b49915e2481b8f5a016afee919bd0f9d144 (diff) | |
download | otp-714ef59e3c3f6d765cbb60974c42ad111abf33e7.tar.gz otp-714ef59e3c3f6d765cbb60974c42ad111abf33e7.tar.bz2 otp-714ef59e3c3f6d765cbb60974c42ad111abf33e7.zip |
Fix broken test for filename:find_src/2
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/test/filename_SUITE.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stdlib/test/filename_SUITE.erl b/lib/stdlib/test/filename_SUITE.erl index b7c4d3a6e5..54066021fb 100644 --- a/lib/stdlib/test/filename_SUITE.erl +++ b/lib/stdlib/test/filename_SUITE.erl @@ -421,8 +421,10 @@ t_nativename(Config) when is_list(Config) -> find_src(Config) when is_list(Config) -> {Source,_} = filename:find_src(file), ["file"|_] = lists:reverse(filename:split(Source)), - {_,_} = filename:find_src(init, [{".","."}, {"ebin","src"}]), - + {Source,_} = filename:find_src(file, [{"",""}, {"ebin","src"}]), + {Source,_} = filename:find_src(Source), + {Source,_} = filename:find_src(Source ++ ".erl"), + %% Try to find the source for a preloaded module. {error,{preloaded,init}} = filename:find_src(init), |