mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-28 18:54:27 +01:00
- added message support to NULL macros
- tweaked runner generator to use symbols for cexception like everything else. git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@56 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@@ -17,7 +17,7 @@ class UnityTestRunnerGenerator
|
||||
require 'yaml'
|
||||
yaml_guts = YAML.load_file(config_file)
|
||||
yaml_goodness = yaml_guts[:unity] ? yaml_guts[:unity] : yaml_guts[:cmock]
|
||||
options[:cexception] = 1 if (yaml_goodness[:plugins].include? 'cexception')
|
||||
options[:cexception] = 1 if (yaml_goodness[:plugins].include? :cexception)
|
||||
options[:coverage ] = 1 if (yaml_goodness[:coverage])
|
||||
options[:order] = 1 if (yaml_goodness[:enforce_strict_ordering])
|
||||
options[:includes] << (yaml_goodness[:includes])
|
||||
@@ -95,6 +95,7 @@ class UnityTestRunnerGenerator
|
||||
def create_header(output, mocks)
|
||||
output.puts('/* AUTOGENERATED FILE. DO NOT EDIT. */')
|
||||
output.puts('#include "unity.h"')
|
||||
output.puts('#include "cmock.h"')
|
||||
@options[:includes].flatten.each do |includes|
|
||||
output.puts("#include \"#{includes.gsub('.h','')}.h\"")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user