diff options
author | Loïc Hoguin <[email protected]> | 2016-09-13 14:04:15 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-09-13 14:04:15 +0200 |
commit | c313f4dfb03b4105eed289141a0e7feef42f8612 (patch) | |
tree | 011e6d9466e0eb8bd4aed554c14829e5f9d489e9 /test | |
parent | 7c8215d8750913e3f8b774b560c0d22d56fe802a (diff) | |
parent | 6c546accfcb2ad6264c16f62e74d35367dabb72c (diff) | |
download | erlang.mk-c313f4dfb03b4105eed289141a0e7feef42f8612.tar.gz erlang.mk-c313f4dfb03b4105eed289141a0e7feef42f8612.tar.bz2 erlang.mk-c313f4dfb03b4105eed289141a0e7feef42f8612.zip |
Merge branch 'fix-dialyzer-ERLC_OPTS-filtering' of https://github.com/rabbitmq/erlang.mk
Diffstat (limited to 'test')
-rw-r--r-- | test/plugin_dialyzer.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/plugin_dialyzer.mk b/test/plugin_dialyzer.mk index 399da1d..af7a5f4 100644 --- a/test/plugin_dialyzer.mk +++ b/test/plugin_dialyzer.mk @@ -191,18 +191,18 @@ dialyzer-erlc-opts: build clean $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v $i "Create a header file in a non-standard directory" - $t mkdir $(APP)/exotic/ - $t touch $(APP)/exotic/dialyze.hrl + $t mkdir $(APP)/exotic-include-path/ + $t touch $(APP)/exotic-include-path/dialyze.hrl $i "Create a module that includes this header" $t printf "%s\n" \ "-module(no_warn)." \ "-export([doit/0])." \ "-include(\"dialyze.hrl\")." \ - "doit() -> ok." > $(APP)/src/no_warn.erl + "doit() -> ?OK." > $(APP)/src/no_warn.erl $i "Point ERLC_OPTS to the non-standard include directory" - $t perl -ni.bak -e 'print;if ($$.==1) {print "ERLC_OPTS += -I exotic\n"}' $(APP)/Makefile + $t perl -ni.bak -e 'print;if ($$.==1) {print "ERLC_OPTS += -I exotic-include-path -DOK=ok\n"}' $(APP)/Makefile $i "Run Dialyzer" $t $(DIALYZER_MUTEX) $(MAKE) -C $(APP) dialyze $v |