aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-05-25 08:55:27 +0200
committerAnders Svensson <[email protected]>2014-05-25 09:17:10 +0200
commitdbed18ef5384f448be3bef2d107f9e9c5ae8ac5e (patch)
tree2dbbb8ec8dd6175837c105fdfc7d5a430facc141
parent50cd06cc7d1ce408f5bf7c5502438b9d65972c50 (diff)
downloadotp-dbed18ef5384f448be3bef2d107f9e9c5ae8ac5e.tar.gz
otp-dbed18ef5384f448be3bef2d107f9e9c5ae8ac5e.tar.bz2
otp-dbed18ef5384f448be3bef2d107f9e9c5ae8ac5e.zip
Anchor path regexps in examples suite
They match emacs backup files and more without the anchor, although this doesn't stop the matches from finding files the suite isn't (yet) intended to test: files under development, not yet commited, etc.
-rw-r--r--lib/diameter/test/diameter_examples_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/test/diameter_examples_SUITE.erl b/lib/diameter/test/diameter_examples_SUITE.erl
index 5df95c59b2..aef4bc35ef 100644
--- a/lib/diameter/test/diameter_examples_SUITE.erl
+++ b/lib/diameter/test/diameter_examples_SUITE.erl
@@ -121,7 +121,7 @@ dict() ->
dict(_Config) ->
Dirs = [filename:join(H ++ ["examples", "dict"])
|| H <- [[code:lib_dir(diameter)], [here(), ".."]]],
- [] = [{F,D,RC} || {_,F} <- sort(find_files(Dirs, ".*\\.dia")),
+ [] = [{F,D,RC} || {_,F} <- sort(find_files(Dirs, ".*\\.dia$")),
D <- ?DICT0,
RC <- [make(F,D)],
RC /= ok].
@@ -228,7 +228,7 @@ code(Config) ->
install(PrivDir) ->
Top = install(here(), PrivDir),
Src = filename:join([Top, "examples", "code"]),
- Files = find_files([Src], ".*\\.erl"),
+ Files = find_files([Src], ".*\\.erl$"),
[] = [{F,E} || {_,F} <- Files,
{error, _, _} = E <- [compile:file(F, [warnings_as_errors,
return_errors])]].
@@ -260,7 +260,7 @@ install(Dir, PrivDir) ->
Inc = filename:join([Top, "include"]),
Gen = filename:join([Top, "src", "gen"]),
- Files = find_files([Inc, Gen], ".*\\.hrl"),
+ Files = find_files([Inc, Gen], ".*\\.hrl$"),
[] = [{F,E} || {_,F} <- Files,
B <- [filename:basename(F)],
D <- [filename:join([TmpInc, B])],