Skip to content

Commit b6763fb

Browse files
committed
tweaks to the default test fixture to fix self-test issues.
1 parent 0021ec5 commit b6763fb

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

auto/unity_test_summary.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def get_details(_result_file, lines)
9191
next unless status_match
9292

9393
status = status_match.captures[0]
94+
# A line ending in :PASS is a passing expected-failure test; the FAIL
95+
# earlier on the same line was the intentional (caught) assertion.
96+
status = 'PASS' if line.end_with?(':PASS') && status == 'FAIL'
9497

9598
line_out = (@root && (@root != 0) ? "#{@root}#{line}" : line).gsub(/\//, '\\')
9699
case status

test/targets/clang.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,13 @@
6565
- "-o ${2}"
6666
:version: --version
6767
:test_fixture:
68-
:name: test_fixture
69-
:optional: true
70-
:executable: '${1}'
71-
:arguments: []
68+
:name: clang_fixture
69+
:executable: ''
7270
:version: --version
71+
:optional: true
72+
:arguments:
73+
- ${1}
74+
- ${2}
7375
:gcov_compiler:
7476
:name: gcov_compiler
7577
:executable: clang

test/targets/gcc.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@
4848
- "-o ${2}"
4949
:version: --version
5050
:test_fixture:
51-
:name: test_fixture
52-
:optional: true
53-
:executable: '${1}'
54-
:arguments: []
51+
:name: gcc_fixture
52+
:executable: ''
5553
:version: --version
54+
:optional: true
55+
:arguments:
56+
- ${1}
57+
- ${2}
5658
:gcov_compiler:
5759
:name: gcov_compiler
5860
:executable: gcc

0 commit comments

Comments
 (0)