Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes to improve compatibility between the POSIX API and native builds #63866

Merged
merged 4 commits into from
Oct 20, 2023

Commits on Oct 12, 2023

  1. tests posix event_fd: Fix for native targets

    The infinite loop during the stress needs to be broken
    with a small delay when built for native targets.
    Let's add it.
    Note that this delay is only added for ARCH_POSIX targets
    and not any other.
    
    Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
    aescolar committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    b60c2c2 View commit details
    Browse the repository at this point in the history
  2. tests posix getopt: Minor fix for native targets

    This test should be compiled without host headers
    when built without the host libC, and at the same
    time, it does not support building with the host
    libC, so let's remove the condition that includes
    the host libC header to avoid extra confusion.
    
    Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
    aescolar committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    d45e618 View commit details
    Browse the repository at this point in the history
  3. POSIX API: Fix posix_types.h for native builds

    The inclusion of the compiler provided sys/types.h
    should depend on not using the host C library,
    and not just of building for a native target.
    
    Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
    aescolar committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    ac7ca53 View commit details
    Browse the repository at this point in the history
  4. tests posix pthread_pressure: Fix for native targtets

    The infinite loop during the test needs to be broken
    with a small delay when built for native targets.
    Let's add it.
    Note that this delay is only added for ARCH_POSIX targets
    and not any other.
    
    Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
    aescolar committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    34396d7 View commit details
    Browse the repository at this point in the history