mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-07 02:39:59 +00:00
tweaks to the default test fixture to fix self-test issues.
This commit is contained in:
@@ -91,6 +91,9 @@ class UnityTestSummary
|
||||
next unless status_match
|
||||
|
||||
status = status_match.captures[0]
|
||||
# A line ending in :PASS is a passing expected-failure test; the FAIL
|
||||
# earlier on the same line was the intentional (caught) assertion.
|
||||
status = 'PASS' if line.end_with?(':PASS') && status == 'FAIL'
|
||||
|
||||
line_out = (@root && (@root != 0) ? "#{@root}#{line}" : line).gsub(/\//, '\\')
|
||||
case status
|
||||
|
||||
@@ -65,11 +65,13 @@
|
||||
- "-o ${2}"
|
||||
:version: --version
|
||||
:test_fixture:
|
||||
:name: test_fixture
|
||||
:optional: true
|
||||
:executable: '${1}'
|
||||
:arguments: []
|
||||
:name: clang_fixture
|
||||
:executable: ''
|
||||
:version: --version
|
||||
:optional: true
|
||||
:arguments:
|
||||
- ${1}
|
||||
- ${2}
|
||||
:gcov_compiler:
|
||||
:name: gcov_compiler
|
||||
:executable: clang
|
||||
|
||||
@@ -48,11 +48,13 @@
|
||||
- "-o ${2}"
|
||||
:version: --version
|
||||
:test_fixture:
|
||||
:name: test_fixture
|
||||
:optional: true
|
||||
:executable: '${1}'
|
||||
:arguments: []
|
||||
:name: gcc_fixture
|
||||
:executable: ''
|
||||
:version: --version
|
||||
:optional: true
|
||||
:arguments:
|
||||
- ${1}
|
||||
- ${2}
|
||||
:gcov_compiler:
|
||||
:name: gcov_compiler
|
||||
:executable: gcc
|
||||
|
||||
Reference in New Issue
Block a user