aboutsummaryrefslogtreecommitdiffstats
path: root/erts/test
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <egil@erlang.org>2012-01-04 14:44:14 +0100
committerBjörn-Egil Dahlberg <egil@erlang.org>2012-01-04 14:44:14 +0100
commitd79b413adcf4c084df30f831486ba1f1ac504c5c (patch)
tree02e8287ab9e154dde91c54dd80621712d83959d6 /erts/test
parent0d4600294cecec20daef0d055cb7e8e95ce6667e (diff)
downloadotp-d79b413adcf4c084df30f831486ba1f1ac504c5c.tar.gz
otp-d79b413adcf4c084df30f831486ba1f1ac504c5c.tar.bz2
otp-d79b413adcf4c084df30f831486ba1f1ac504c5c.zip
erts: Use re instead of regexp in testsuite
Diffstat (limited to 'erts/test')
-rw-r--r--erts/test/z_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/test/z_SUITE.erl b/erts/test/z_SUITE.erl
index 482ecb8fba..28da923497 100644
--- a/erts/test/z_SUITE.erl
+++ b/erts/test/z_SUITE.erl
@@ -236,8 +236,8 @@ format_core(#core_search_conf{file = false}, Core, Ignore) ->
[Ignore, Core] ++ mod_time_list(Core));
format_core(#core_search_conf{file = File}, Core, Ignore) ->
FRes = str_strip(os:cmd(File ++ " " ++ Core)),
- case catch regexp:match(FRes, Core) of
- {match, _, _} ->
+ case catch re:run(FRes, Core, [caseless,{capture,none}]) of
+ match ->
io:format(" ~s~s " ++ time_fstr() ++ "~n",
[Ignore, FRes] ++ mod_time_list(Core));
_ ->