Skip to content

Commit 50f6dd5

Browse files
authored
Merge pull request #1145 from nasa/integration-candidate
osal Integration candidate: 2021-09-07
2 parents 7ebb463 + 1743a68 commit 50f6dd5

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/local_unit_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/os/inc/osapi-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
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
/*

src/os/shared/inc/os-shared-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void OS_ApplicationShutdown_Impl(void);
149149
------------------------------------------------------------------*/
150150
static 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 */

0 commit comments

Comments
 (0)