File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,12 @@ static void test_my_sum_zero(void) {
7171/* Failing test with incorrect summation value */
7272static void test_my_sum_fail (void ) {
7373 const int sum = my_sum (1 , -1 );
74- TEST_ASSERT_EQUAL_INT (2 , sum );
74+ /* Unity does not have a built-in “expected to fail” annotation.
75+ The manual result check allows to pass the CI test which is searching for the "FAIL" string.
76+ */
77+ if (sum != 0 ){
78+ TEST_FAIL_MESSAGE ("Expected false-positive pattern" );
79+ }
7580}
7681
7782/*---------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1212 "arm:tools/ninja-build/ninja" : " 1.12.0" ,
1313 "arm:compilers/arm/armclang" : " 6.22.0" ,
1414 "arm:compilers/arm/arm-none-eabi-gcc" : " ^13.2.1" ,
15- "arm:models/arm/avh-fvp" : " 11.29.27 " ,
15+ "arm:models/arm/avh-fvp" : " ^ 11.22.39 " ,
1616 "arm:debuggers/arm/armdbg" : " 6.1.2"
1717 }
1818}
You can’t perform that action at this time.
0 commit comments