diff --git a/.github/workflows/build-deb.yaml b/.github/workflows/build-deb.yaml new file mode 100644 index 00000000..4072fc86 --- /dev/null +++ b/.github/workflows/build-deb.yaml @@ -0,0 +1,138 @@ +name: Build DEB Package + +on: + push: + branches: + - feat/tag-build + pull_request: + branches: + - feat/tag-build + +jobs: + build-deb: + runs-on: ubuntu-latest + + env: + DEB_BUILD_OPTIONS: nocheck # or whatever options you need + strategy: + matrix: + distro: [debian-bookworm, debian-bullseye, ubuntu-24.04, ubuntu-22.04] + include: + - distro: debian-bookworm + image: debian:bookworm + os: debian + version: bookworm + - distro: debian-bullseye + image: debian:bullseye + os: debian + version: bullseye + - distro: ubuntu-24.04 + image: ubuntu:24.04 + os: ubuntu + version: noble + - distro: ubuntu-22.04 + image: ubuntu:22.04 + os: ubuntu + version: jammy + container: + image: ${{ matrix.image }} + steps: + - name: Install build dependencies + run: | + apt-get update + apt-get install -y build-essential devscripts debhelper autotools-dev autoconf-archive fakeroot sed git python3-pip python3-venv curl jq + + - name: Checkout source + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mark working directory as safe + run: git config --global --add safe.directory $GITHUB_WORKSPACE + + - name: Fetch all branches + run: git fetch --tags + + - name: update branch name + run: | + safe_branch=$(echo "${GITHUB_REF_NAME}" | tr '/' '-') + sed "s|BRANCH_VERSION|$safe_branch|" configure.ac.in > configure.ac + env: + GITHUB_REF_NAME: ${{ github.ref_name }} + + - name: Prepare autotools + run: | + # Nur falls nicht schon vorhanden (optional) + autoreconf -fi + + - name: Build .deb package + run: | + # baue mit dpkg-buildpackage (ohne signieren) + dpkg-buildpackage -us -uc -d + + - name: Collect .deb artifact + run: | + mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }} + mv ../libosal_*.deb artifacts/${{ matrix.os }}/${{ matrix.version }} + + - name: Set sanitized image name + id: sanitize + run: | + version=$(dpkg-parsechangelog | sed -n 's/^Version: //p') + echo "sanitized_image=$(echo "$version-$IMAGE" | tr '/:' '--')" >> $GITHUB_OUTPUT + env: + IMAGE: ${{ matrix.image }} + + - name: Upload .deb package + uses: actions/upload-artifact@v4 + with: + name: libosal-${{ steps.sanitize.outputs.sanitized_image }}.deb + path: artifacts/${{ matrix.os }}/${{ matrix.version }}/*.deb + + - name: Ensure package is present + run: | + echo "Files in workspace:" + find * + + - name: Upload to Cloudsmith (${{ matrix.os }}/${{ matrix.version }}) + env: + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} + shell: bash + run: | + VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: //p') + FILENAME="artifacts/${{ matrix.os }}/${{ matrix.version }}/libosal_${VERSION}_amd64.deb" + + python3 -m venv cloudsmith + cd cloudsmith + source bin/activate + + python3 -m pip install --upgrade pip + pip3 install cloudsmith-cli + + cloudsmith push deb robert-burger-AdLL/common/${{ matrix.os }}/${{ matrix.version }} ../${FILENAME} \ + --republish \ + --api-key "$CLOUDSMITH_API_KEY" + + - name: Collect devel .deb artifact + run: | + mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }} + mv ../libosal-dev*.deb artifacts/${{ matrix.os }}/${{ matrix.version }} + + - name: Upload devel to Cloudsmith (${{ matrix.os }}/${{ matrix.version }}) + env: + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} + shell: bash + run: | + VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: //p') + FILENAME="artifacts/${{ matrix.os }}/${{ matrix.version }}/libosal-dev_${VERSION}_amd64.deb" + + python3 -m venv cloudsmith + cd cloudsmith + source bin/activate + + python3 -m pip install --upgrade pip + pip3 install cloudsmith-cli + + cloudsmith push deb robert-burger-AdLL/common/${{ matrix.os }}/${{ matrix.version }} ../${FILENAME} \ + --republish \ + --api-key "$CLOUDSMITH_API_KEY" diff --git a/.github/workflows/build-tag.yaml b/.github/workflows/build-tag.yaml deleted file mode 100644 index 4476f726..00000000 --- a/.github/workflows/build-tag.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Build on Tag - -on: - push: - branches: - - 'ci/*' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up build - run: echo "Building tag ${{ github.ref }}" - - # Beispiel: Build-Befehl ausführen - - name: Compile - run: | - make # oder dein Build-Befehl diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml deleted file mode 100644 index 6eeaec94..00000000 --- a/.github/workflows/cmake-multi-platform.yml +++ /dev/null @@ -1,85 +0,0 @@ -# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform. -# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml -name: CMake on multiple platforms - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "*" ] - -jobs: - build: - runs-on: ${{ matrix.os }} - - strategy: - # Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. - fail-fast: false - - # Set up a matrix to run the following 3 configurations: - # 1. - # 2. - # 3. - # - # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. - matrix: - os: [ubuntu-latest, windows-latest] - build_type: [Release] - c_compiler: [gcc, clang, cl] - include: - - os: windows-latest - c_compiler: cl - cpp_compiler: cl - build_for_platform: WIN32 - - os: ubuntu-latest - c_compiler: gcc - cpp_compiler: g++ - build_for_platform: POSIX - - os: ubuntu-latest - c_compiler: clang - cpp_compiler: clang++ - build_for_platform: POSIX - exclude: - - os: windows-latest - c_compiler: gcc - - os: windows-latest - c_compiler: clang - - os: ubuntu-latest - c_compiler: cl - - steps: - - uses: actions/checkout@v3 - - - name: Set reusable strings - # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. - id: strings - shell: bash - run: | - echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: > - cmake -B ${{ steps.strings.outputs.build-output-dir }} - -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} - -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} - -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - -DBUILD_FOR_PLATFORM="${{ matrix.build_for_platform }}" - -S ${{ github.workspace }} - - - name: Build - # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} - - - name: Test - working-directory: ${{ steps.strings.outputs.build-output-dir }} - # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest --build-config ${{ matrix.build_type }} - - - - uses: actions/upload-artifact@v4 - with: - path: build/*.tar.gz - name: libosal_${{ matrix.os }}_${{ matrix.configs }}.tar.gz diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 00000000..a1546373 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +safe_branch=$(git describe --tags | tr '/:' '--') + +sed "s|PACKAGE_VERSION|$safe_branch|" configure.ac.in > configure.ac diff --git a/configure.ac b/configure.ac index 6e2d77a3..872ffca6 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([libosal], m4_esyscmd_s([cat project.properties | grep VERSION | cut -d'=' -f2 | xargs printf "%s"]), [Robert Burger ]) +AC_INIT([libosal], [0.0.6-rev0-59-gc918511], [Robert Burger ]) AC_CANONICAL_TARGET diff --git a/configure.ac.in b/configure.ac.in new file mode 100644 index 00000000..6b8cc9f3 --- /dev/null +++ b/configure.ac.in @@ -0,0 +1,161 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([libosal], [PACKAGE_VERSION], [Robert Burger ]) + +AC_CANONICAL_TARGET + +# Automake initialization +AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) +#AM_INIT_AUTOMAKE([-Wall -Werror foreign silent-rules subdir-objects]) +#m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + + +AC_CONFIG_SRCDIR([src]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) +AX_PREFIX_CONFIG_H(include/libosal/config.h) # prep mylib/_config.h from it.. + +# Checks for programs. +AC_PROG_CC +# we test the posix API with gtest, which requires C++ +AC_PROG_CXX +AC_PROG_LIBTOOL + +LT_INIT + +case $target_os in + mingw32*) + BUILD_POSIX=true + BUILD_MINGW32=true + AC_DEFINE([BUILD_POSIX], [true], [Use POSIX build on windows mingw32]) + AC_DEFINE([BUILD_MINGW32], [true], [Use MINGW32 build on windows mingw32]) + AX_APPEND_FLAG([-DPTW32_STATIC_LIB], [CFLAGS]) + ;; + linux*) + BUILD_POSIX=true + AC_DEFINE([BUILD_POSIX], [true], [Use POSIX build on linux]) + ;; + vxworks*) + BUILD_VXWORKS=true + AC_DEFINE([BUILD_VXWORKS], [true], [Use VxWorks build]) + ;; + pikeos*) + BUILD_PIKEOS=true + AC_DEFINE([BUILD_PIKEOS], [true], [Use PikeOS build]) + CFLAGS="$CFLAGS -Wno-suggest-attribute=format -Wno-error=suggest-attribute=format" + ;; +esac + +if test x$BUILD_POSIX == xtrue; then + AC_DEFINE([HAVE_ENOTRECOVERABLE], [], [Check if errno ENOTRECOVERABLE is present.]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ + #include + ],[ + int ret = ENOTRECOVERABLE; + ])], [AC_DEFINE([HAVE_ENOTRECOVERABLE], [1])], + [AC_DEFINE([HAVE_ENOTRECOVERABLE], [0])]) + + AC_DEFINE([HAVE_SIGSTOP], [], [Check if signal SIGSTOP is present.]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ + #include + ],[ + int ret = SIGSTOP; + ])], [AC_DEFINE([HAVE_SIGSTOP], [1])], + [AC_DEFINE([HAVE_SIGSTOP], [0])]) + + AC_DEFINE([HAVE_SIGCONT], [], [Check if signal SIGCONT is present.]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ + #include + ],[ + int ret = SIGCONT; + ])], [AC_DEFINE([HAVE_SIGCONT], [1])], + [AC_DEFINE([HAVE_SIGCONT], [0])]) + + PTHREAD_LIBS="" + RT_LIBS="" + + AC_DEFINE([HAVE_PTHREAD_MUTEXATTR_SETROBUST], [], [Check if posix function pthread_mutexattr_setrobust present.]) + AC_CHECK_LIB(pthread, pthread_mutexattr_setrobust, + [AC_DEFINE([HAVE_PTHREAD_MUTEXATTR_SETROBUST], [1]) + PTHREAD_LIBS="-lpthread"], + [AC_DEFINE([HAVE_PTHREAD_MUTEXATTR_SETROBUST], [0])]) + + AC_DEFINE([HAVE_PTHREAD_SETAFFINITY_NP], [], [Check if posix function pthread_setaffinity_np present.]) + AC_CHECK_LIB(pthread, pthread_setaffinity_np, + [AC_DEFINE([HAVE_PTHREAD_SETAFFINITY_NP], [1]) + PTHREAD_LIBS="-lpthread"], + [AC_DEFINE([HAVE_PTHREAD_SETAFFINITY_NP], [0])]) + + AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS="-lpthread") + AC_CHECK_LIB(rt, clock_gettime, RT_LIBS="-lrt") + AC_SUBST(PTHREAD_LIBS) + AC_SUBST(RT_LIBS) +fi + +AC_CHECK_LIB(m, sqrt, MATH_LIBS="-lm") +AC_SUBST(MATH_LIBS) + +AM_CONDITIONAL([BUILD_POSIX], [ test x$BUILD_POSIX = xtrue]) +AM_CONDITIONAL([BUILD_MINGW32], [ test x$BUILD_MINGW32 = xtrue]) +AM_CONDITIONAL([BUILD_VXWORKS], [ test x$BUILD_VXWORKS = xtrue]) +AM_CONDITIONAL([BUILD_PIKEOS], [ test x$BUILD_PIKEOS = xtrue]) +AM_CONDITIONAL([BUILD_WIN32], [ test x$BUILD_WIN32 = xtrue]) + +# Checks for libraries. + +# Checks for header files. +AC_CHECK_HEADERS([stdint.h]) +AC_CHECK_HEADERS([math.h]) +AC_CHECK_HEADERS([sys/mman.h], HAVE_SYS_MMAN_H=true, HAVE_SYS_MMAN_H=false) +AC_CHECK_HEADERS([mqueue.h], HAVE_MQUEUE_H=true, HAVE_MQUEUE_H=false) +dnl check for sys/prctl for setting thread name on Linux +AC_CHECK_HEADERS([sys/prctl.h], [], [], [AC_INCLUDES_DEFAULT]) + +# Checks for header files. +AC_CHECK_HEADERS([p4ext_threads.h]) + +# Check support for -mrdseed +AS_IF([test "$ac_cv_header_p4ext_threads_h" = "yes"], [ + AC_DEFINE([HAVE_P4_MUTEX_INIT_EXT], [], [Check if pikeos support p4_mutext_init_ext.]) + + CFLAGS_save=$CFLAGS + CFLAGS="$CFLAGS -Werror" + XXX_PROGRAM=" +#include +int main(void) { + P4_mutex_t pikeos_mtx; + P4_uint32_t flags = 0u; + P4_prio_t ceil_prio = 0u; + p4_mutex_init_ext(&pikeos_mtx, flags, ceil_prio); + return 0; +} +" + AC_MSG_CHECKING([whether pikeos support for p4_mutex_init_ext]) + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE([$XXX_PROGRAM])], + [ + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_P4_MUTEX_INIT_EXT], [1]) + ], + [ + AC_MSG_RESULT([no]) + AC_DEFINE([HAVE_P4_MUTEX_INIT_EXT], [0]) + ] + ) + + CFLAGS=$CFLAGS_save +]) + +AM_CONDITIONAL([HAVE_SYS_MMAN_H], [ test x$HAVE_SYS_MMAN_H = xtrue]) +AM_CONDITIONAL([HAVE_MQUEUE_H], [ test x$HAVE_MQUEUE_H = xtrue]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_UINT32_T + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile src/Makefile src/tools/logger/Makefile src/tools/shmtest/Makefile tests/Makefile tests/posix/Makefile libosal.pc]) +AC_OUTPUT diff --git a/debian/changelog b/debian/changelog index d9668646..f16fcfc5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,50 @@ +libosal (0.1.0~pre1-1) unstable; urgency=low + + * Merge branch 'master' of github.com:robert-burger/libosal + * Merge pull request #6 from marcfir/master + * Merge commit '0.0.6-rev0-2-g98fb40b' + * fix: out-of-src-tree build + * fix: posix sem_timedwait -> converting timeout to CLOCK_REALTIME based timeout if needed + * use target_compile_definitions + * fix: add HAVE_CONFIG_H to cmake + * Merge pull request #13 from common/feat/stm32-merge + * Merge branch 'feat/stm32' into feat/stm32-merge + * changed ifndef and define from posix to stm32 + * add: stm32 libosal files + * add: initial stm32 mutex + * fix: binary semaphore has uninitialized internal mutex attributes in posix case + * deleted crit sec in osal_puts + * deleted crit sec in sem_trywait + * changed buf size in osal_printf and added sizeof(buf) + * added CRIT_SECs around HAL_UART_TX + * use huart1 instead of huart3 + * Merge pull request #1 from burger-r/stm32-changes + * Update timer.c, fix stm32hxx.h + * fix: changes for stm32 target + * added volatile int + * added volatile int + * added memset 0 + * added HAL_UART_Transmit and ATOMIC_BLOCK + * removed outcommented lines; added timer logic + * removed outcommented lines; added semaphore logic(inc/dec) + * restructure + * added counter to sem + * added TIM2 and 4 for time calculation in osal_timer_gettime + * initialized timespec ts={0,0} + * added stm32_ret + * added me to authors; added date + * deleted function pthreads for stm32 functions + * added missing stm32 files; made #ifdef for config and for LIBOSAL_BUILD_STM32 + * changed ifndef and define from posix to stm32 + * changed ifndef and define from posix to stm32 + * add: stm32 libosal files + * add: initial stm32 mutex + + -- Robert Burger Thu, 3 Jul 2025 06:51:06 +0200 + libosal (0.0.6) unstable; urgency=low + * prep: 0.0.6 release * fix: extendend tracing to also return min_val and max_val relative * fix: extendend tracing to also return min_val and max_val * add: extenden tracing to also return min_val and max_val @@ -21,7 +66,7 @@ libosal (0.0.6) unstable; urgency=low * doc: clean markdown * feat(CMake): Configure fpic - -- Robert Burger Wed, 19 Mar 2025 14:51:32 +0100 + -- Robert Burger Mon, 24 Mar 2025 08:28:42 +0100 libosal (0.0.5) unstable; urgency=low diff --git a/debian/control b/debian/control index 3a8c09ef..85cee2c8 100644 --- a/debian/control +++ b/debian/control @@ -4,9 +4,9 @@ Maintainer: Robert Burger Build-Depends: debhelper-compat (= 13), autotools-dev Standards-Version: 4.5.1 Section: libs -Homepage: https://rmc-github.robotic.dlr.de/pages/common/libosal/master/index.html -Vcs-Browser: https://rmc-github.robotic.dlr.de/common/libosal -Vcs-Git: https://rmc-github.robotic.dlr.de/common/libosal.git +Homepage: https://www.burger-system.de/osal/osal +Vcs-Browser: https://github.com/robert-burger/libosal.git +Vcs-Git: https://github.com/robert-burger/libosal.git Rules-Requires-Root: no Package: libosal-dev diff --git a/debian/rules b/debian/rules index 740e7b2b..ad0e0994 100755 --- a/debian/rules +++ b/debian/rules @@ -12,11 +12,11 @@ export DH_VERBOSE = 1 # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -export GIT_VERSION = $(shell git describe --long --dirty --tags | awk -F- '{ print $$1 }') +#export GIT_VERSION = $(shell git describe --long --dirty --tags | awk -F- '{ print $$1 }') -override_dh_autoreconf: - sed 's/VERSION.*/VERSION = ${GIT_VERSION}/' -i project.properties - dh_autoreconf +#override_dh_autoreconf: +# sed 's/VERSION.*/VERSION = ${GIT_VERSION}/' -i project.properties +# dh_autoreconf %: dh $@ diff --git a/rmc-build.yaml b/rmc-build.yaml index 7ef55318..8836a522 100644 --- a/rmc-build.yaml +++ b/rmc-build.yaml @@ -1,6 +1,9 @@ -context: conan -configurations: -- imports: - - linux_defaults_build_profile -- debian11-x86_64 -- build_profile:osl154-x86_64 pikeos4.2-armv7hf-gcc5: +builds: +- context: conan + configurations: + - any: + coverage: True + - imports: + - linux_defaults_build_profile + - debian11-x86_64 + - build_profile:osl154-x86_64 pikeos4.2-armv7hf-gcc5: diff --git a/src/io.c b/src/io.c index e2d497f3..49d1d2e8 100644 --- a/src/io.c +++ b/src/io.c @@ -28,6 +28,7 @@ * along with libosal; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + #ifdef HAVE_CONFIG_H #include #endif diff --git a/src/posix/task.c b/src/posix/task.c index badf3fcf..ddf1d872 100644 --- a/src/posix/task.c +++ b/src/posix/task.c @@ -180,7 +180,6 @@ osal_retval_t osal_task_join(osal_task_t *hdl, osal_task_retval_t *retval) { int local_ret; local_ret = pthread_join(hdl->tid, retval); - (void)local_ret; if (local_ret != 0) { if (local_ret == EDEADLK) { @@ -384,7 +383,17 @@ osal_retval_t osal_task_set_policy(osal_task_t *hdl, osal_task_sched_policy_t po param.sched_priority = sched_get_priority_max(tmp_policy); } - (void)pthread_setschedparam(pthread_self(), tmp_policy, ¶m); + local_ret = pthread_setschedparam(pthread_self(), tmp_policy, ¶m); + + if (local_ret != 0) { + if ((local_ret == ESRCH) || (local_ret == EINVAL)) { + ret = OSAL_ERR_INVALID_PARAM; + } else if (local_ret == EPERM) { + ret = OSAL_ERR_PERMISSION_DENIED; + } else { + ret = OSAL_ERR_OPERATION_FAILED; + } + } } return ret; diff --git a/tests/posix/test_mutex_priority_inversion.cc b/tests/posix/test_mutex_priority_inversion.cc index 3d41293c..4f1e91b1 100644 --- a/tests/posix/test_mutex_priority_inversion.cc +++ b/tests/posix/test_mutex_priority_inversion.cc @@ -255,6 +255,14 @@ TEST(MutexFunction, TestNoPriorityInheritance) { ASSERT_EQ(orv, OSAL_OK) << "osal_task_create() M failed"; + orv = osal_task_set_policy(nullptr, OSAL_SCHED_POLICY_FIFO); + if (orv == OSAL_ERR_PERMISSION_DENIED) { + printf("Warning: osal_task_set_policy permission denied " + "on that build host! Skipping TestNoPriorityInheritance!\n"); + return; + } + ASSERT_EQ(orv, OSAL_OK) << "osal_task_set_policy() L failed"; + orv = osal_task_set_priority(nullptr, 1); if (orv != 0) { printf("Warning: osal_task_set_priority() L failed " @@ -267,9 +275,6 @@ TEST(MutexFunction, TestNoPriorityInheritance) { "- consider running under \"chrt -f 1 ...\"\n"); } - orv = osal_task_set_policy(nullptr, OSAL_SCHED_POLICY_FIFO); - ASSERT_EQ(orv, OSAL_OK) << "osal_task_set_policy() L failed"; - run_L(&shared); osal_task_retval_t trv = 0;