Browse Source

Add a second comma/space to test global substitutions

Nick Gates 9 years ago
parent
commit
9a90461dbc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/core_compat.mk

+ 2 - 1
test/core_compat.mk

@@ -220,7 +220,7 @@ core-compat-rebar-pt: build clean
 	$t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = lager\n"}' $(APP)/Makefile
 
 	$i "Add the lager_transform parse_transform to ERLC_OPTS"
-	$t echo "ERLC_OPTS += +'{parse_transform, lager_transform}'" >> $(APP)/Makefile
+	$t echo "ERLC_OPTS += +'{parse_transform, lager_transform}' +'{lager_truncation_size, 1234}'" >> $(APP)/Makefile
 
 	$i "Build the application"
 	$t $(MAKE) -C $(APP) $v
@@ -236,6 +236,7 @@ core-compat-rebar-pt: build clean
 		{ok, C} = file:consult(\"$(APP)/rebar.config\"), \
 		{_, Opts} = lists:keyfind(erl_opts, 1, C), \
 		true = lists:member({parse_transform, lager_transform}, Opts), \
+		true = lists:member({lager_truncation_size, 1234}, Opts), \
 		halt()"
 
 # For the new build method, we have to simulate keeping the .app file