aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_config_SUITE_data
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-09-20 15:11:33 +0200
committerLukas Larsson <[email protected]>2012-11-09 15:52:01 +0100
commit22698424dbc6efec84d71234b60290b3937f2f28 (patch)
tree8d26d989d4b7b903ae96f4f34c3de279cd3a7ee1 /lib/common_test/test/ct_config_SUITE_data
parent9604cf9378dc240d9be36d3785bfbd9731437f03 (diff)
downloadotp-22698424dbc6efec84d71234b60290b3937f2f28.tar.gz
otp-22698424dbc6efec84d71234b60290b3937f2f28.tar.bz2
otp-22698424dbc6efec84d71234b60290b3937f2f28.zip
Fix bug where require of same name at same config would return name in use
Diffstat (limited to 'lib/common_test/test/ct_config_SUITE_data')
-rw-r--r--lib/common_test/test/ct_config_SUITE_data/config/test/config_static_SUITE.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/common_test/test/ct_config_SUITE_data/config/test/config_static_SUITE.erl b/lib/common_test/test/ct_config_SUITE_data/config/test/config_static_SUITE.erl
index 2e1ad651e8..19f1dab4af 100644
--- a/lib/common_test/test/ct_config_SUITE_data/config/test/config_static_SUITE.erl
+++ b/lib/common_test/test/ct_config_SUITE_data/config/test/config_static_SUITE.erl
@@ -64,7 +64,8 @@ all() -> [test_get_config_simple, test_get_config_nested,
test_shadow_all,test_element,test_shadow_all_element,
test_internal_deep, test_alias_tclocal_nested,
test_alias_tclocal_nested_backward_compat,
- test_alias_tclocal_nested_backward_compat_subvals
+ test_alias_tclocal_nested_backward_compat_subvals,
+ test_config_same_name_already_in_use
].
init_per_testcase(_,Config) ->
@@ -124,6 +125,13 @@ test_config_name_already_in_use2(_) ->
ct:fail("Test should've been skipped, you shouldn't see this!"),
ok.
+
+test_config_same_name_already_in_use() ->
+ [].
+test_config_same_name_already_in_use(_) ->
+ ok = ct:require(x2,{gen_cfg,c}),
+ ok = ct:require(x2,{gen_cfg,c}).
+
%% test aliases
test_alias_tclocal() ->
[{require,newalias,gen_cfg}].