aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-11-16 14:38:15 +0100
committerBjörn Gustavsson <[email protected]>2015-11-17 09:14:07 +0100
commit57c53b4918bafc72097315d980fea2d0f296b1bb (patch)
tree3b08ab034f333d3f4605a7464c8a9928da541581 /lib/stdlib/test
parentc1a6beef36bd89b7e50efa8df1ef71f33272de12 (diff)
downloadotp-57c53b4918bafc72097315d980fea2d0f296b1bb.tar.gz
otp-57c53b4918bafc72097315d980fea2d0f296b1bb.tar.bz2
otp-57c53b4918bafc72097315d980fea2d0f296b1bb.zip
epp: Refactor scan_define()
Refactor scan_define() in order to share more between macros without any arguments and macros with arguments.
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 90642b2dca..4c007e76ad 100644
--- a/lib/stdlib/test/epp_SUITE.erl
+++ b/lib/stdlib/test/epp_SUITE.erl
@@ -811,6 +811,10 @@ otp_8130(Config) when is_list(Config) ->
<<"\n-include(\"no such file.erl\").\n">>,
{errors,[{{2,2},epp,{include,file,"no such file.erl"}}],[]}},
+ {otp_8130_c25,
+ <<"\n-define(A.\n">>,
+ {errors,[{{2,2},epp,{bad,define}}],[]}},
+
{otp_8130_7,
<<"-record(b, {b}).\n"
"-define(A, {{a,#b.b.\n"