aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-08-09 10:40:37 +0200
committerBjörn Gustavsson <[email protected]>2011-10-27 12:26:40 +0200
commit043335119b1625d04d87c33851749a9f742b024a (patch)
tree474d8f3457b2ebed2cdb439a5f63ed4e6262cc4c /lib
parentb5599c98a4e38c029b1cf00f46a2323c83f59f1c (diff)
downloadotp-043335119b1625d04d87c33851749a9f742b024a.tar.gz
otp-043335119b1625d04d87c33851749a9f742b024a.tar.bz2
otp-043335119b1625d04d87c33851749a9f742b024a.zip
xmerl test suite: Eliminate use of deprecated regexp module
Diffstat (limited to 'lib')
-rw-r--r--lib/xmerl/test/xmerl_test_lib.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xmerl/test/xmerl_test_lib.erl b/lib/xmerl/test/xmerl_test_lib.erl
index a83956c076..e82ad283b2 100644
--- a/lib/xmerl/test/xmerl_test_lib.erl
+++ b/lib/xmerl/test/xmerl_test_lib.erl
@@ -87,6 +87,6 @@ keysearch_delete(Key,N,List) ->
%% the original data directory.
get_data_dir(Config) ->
- Data0 = ?config(data_dir, Config),
- {ok,Data,_} = regexp:sub(Data0, "xmerl_sax_std_SUITE", "xmerl_std_SUITE"),
- Data.
+ Data = ?config(data_dir, Config),
+ Opts = [{return,list}],
+ re:replace(Data, "xmerl_sax_std_SUITE", "xmerl_std_SUITE", Opts).