aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-05-03 12:11:05 +0200
committerFredrik Gustafsson <[email protected]>2013-05-03 12:11:05 +0200
commitb27dbc71606c5b78f7cdd7b03b9e6c4ac5020b10 (patch)
tree39e61b013d91ecbf80a44036195f9fc14b799f4f /lib/stdlib/test
parente086819ca3238e7b47e9e417e981cbba8fc3fbc1 (diff)
parent897ae234ef868c17116b683052ee46effd60c3d2 (diff)
downloadotp-b27dbc71606c5b78f7cdd7b03b9e6c4ac5020b10.tar.gz
otp-b27dbc71606c5b78f7cdd7b03b9e6c4ac5020b10.tar.bz2
otp-b27dbc71606c5b78f7cdd7b03b9e6c4ac5020b10.zip
Merge branch 'nox/fix-epp-file-attrs/OTP-11079' into maint
* nox/fix-epp-file-attrs/OTP-11079: Fix an inconsistent state in epp
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/epp_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/test/epp_SUITE.erl b/lib/stdlib/test/epp_SUITE.erl
index b2f1aa955a..0cbdf76270 100644
--- a/lib/stdlib/test/epp_SUITE.erl
+++ b/lib/stdlib/test/epp_SUITE.erl
@@ -104,6 +104,8 @@ include_local(suite) ->
include_local(Config) when is_list(Config) ->
?line DataDir = ?config(data_dir, Config),
?line File = filename:join(DataDir, "include_local.erl"),
+ FooHrl = filename:join([DataDir,"include","foo.hrl"]),
+ BarHrl = filename:join([DataDir,"include","bar.hrl"]),
%% include_local.erl includes include/foo.hrl which
%% includes bar.hrl (also in include/) without requiring
%% any additional include path, and overriding any file
@@ -111,6 +113,8 @@ include_local(Config) when is_list(Config) ->
?line {ok, List} = epp:parse_file(File, [DataDir], []),
?line {value, {attribute,_,a,{true,true}}} =
lists:keysearch(a,3,List),
+ [{File,1},{FooHrl,1},{BarHrl,1},{FooHrl,5},{File,5}] =
+ [ FileLine || {attribute,_,file,FileLine} <- List ],
ok.
%%% Here is a little reimplementation of epp:parse_file, which times out