File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ jobs:
4444 run : |
4545 # Current best possible branch coverage is all but 4, with associated issues for each missing case
4646 missed_branches=4
47- coverage_nums=$(grep -A 3 "Overall coverage rate" lcov_out.txt | grep branches | grep -oP "[1 -9]+[0-9]*")
47+ coverage_nums=$(grep -A 3 "Overall coverage rate" lcov_out.txt | grep branches | grep -oP "[0 -9]+[0-9]*")
4848
4949 diff=$(echo $coverage_nums | awk '{ print $4 - $3 }')
50- if [ $(($ diff > $missed_branches)) == 1 ]
50+ if [ $diff -gt $missed_branches ]
5151 then
5252 grep -A 3 "Overall coverage rate" lcov_out.txt
5353 echo "More than $missed_branches branches missed"
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
1111
1212## Version History
1313
14+ ### Development Build: v5.1.0-rc1+dev604
15+
16+ - Add typecast to memchr call
17+ - Regex update in coverage enforcement to match ` .0 `
18+ - See < https://github.com/nasa/osal/pull/1145 > and < https://github.com/nasa/cFS/pull/351 >
1419### Development Build: v5.1.0-rc1+dev598
1520
1621- Add UTAssert macros that help test bit field storage
Original file line number Diff line number Diff line change 3636/*
3737 * Development Build Macro Definitions
3838 */
39- #define OS_BUILD_NUMBER 598
39+ #define OS_BUILD_NUMBER 604
4040#define OS_BUILD_BASELINE "v5.1.0-rc1"
4141
4242/*
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ void OS_ApplicationShutdown_Impl(void);
149149 ------------------------------------------------------------------*/
150150static inline size_t OS_strnlen (const char * s , size_t maxlen )
151151{
152- const char * end = memchr (s , 0 , maxlen );
152+ const char * end = ( const char * ) memchr (s , 0 , maxlen );
153153 if (end != NULL )
154154 {
155155 /* actual length of string is difference */
You can’t perform that action at this time.
0 commit comments