Skip to content
Snippets Groups Projects
  1. Feb 24, 2019
  2. Feb 22, 2019
    • gnzlbg's avatar
      Clean libc-test for apple targets · f5cbdbc2
      gnzlbg authored
      This cleans up the build.rs of `libc-test` for apple targets.
      
      I wanted to update the docker containers of some targets so that we can start
      testing newer currently-skipped APIs properly, but it is impossible to figure
      out which headers and APIs are skipped for each target.
      
      This PR separates the testing of apple targets into its own self-contained
      function. This allows seeing exactly which headers are included, and which items
      are skipped. A lot of work will be required to separate the testing of all major
      platforms and make the script reasonable.
      
      During the clean up, I discovered that, at least for apple targets, deprecated
      but not removed APIs are not tested. I re-enabled testing for those, and fixed
      `daemon`, which was not properly linking its symbol. I also added the
      `#[deprecated]` attribute to the `#[deprecated]` APIs of the apple targets. The
      attribute is available since Rust 1.9.0 and the min. Rust version we support is
      Rust 1.13.0.
      
      Many other APIs are also currently not tested "because they are weird" which I
      interpret as "the test failed for an unknown reason", as a consequence:
      
      * the signatures of execv, execve, and execvp are incorrect (see
        https://github.com/rust-lang/libc/issues/1272)
      
      * the `sig_t` type is called `sighandler_t` in libc for some reason:
        https://github.com/rust-lang/libc/issues/1273
      
      This probably explains why some other things, like the
      `sa_handler`/`sa_sigaction` fields of `sigaction` were skipped. The field is
      actually a union, which can be either a `sig_t` for the `sa_handler` field, or
      some other type for the `sa_sigaction` field, but because the distinction was
      not made, the field was not checked.
      
      The latest ctest version can check volatile pointers, so a couple of skipped
      tests are now tested using this feature.
      f5cbdbc2
  3. Feb 19, 2019
  4. Feb 18, 2019
  5. Feb 13, 2019
  6. Feb 12, 2019
  7. Feb 08, 2019
  8. Feb 07, 2019
  9. Feb 05, 2019
    • Alan Somers's avatar
      Add an integration test for the cmsg(3) functions. · 38cf5b15
      Alan Somers authored
      Since these are defined in C as macros, they must be reimplemented in
      libc as Rust functions.  They're hard to get exactly right, and they
      vary from platform to platform.  The test builds custom C code that uses
      the real macros, and compares its output to the Rust versions' output
      for various inputs.
      
      Skip the CMSG_NXTHDR test on sparc64 linux because it hits a Bus Error.
      
      Issue #1239
      
      Skip the entire cmsg test program on s390x because it dumps core
      seemingly before the kernel finishes booting.
      
      Issue #1240
      38cf5b15
  10. Feb 04, 2019
  11. Feb 02, 2019
  12. Jan 28, 2019
  13. Jan 21, 2019
  14. Jan 13, 2019
  15. Jan 04, 2019
  16. Dec 21, 2018
  17. Dec 20, 2018
  18. Dec 18, 2018
  19. Dec 17, 2018
  20. Dec 13, 2018
  21. Dec 08, 2018
  22. Dec 04, 2018
  23. Nov 28, 2018
  24. Nov 26, 2018
  25. Nov 23, 2018
  26. Nov 22, 2018
  27. Nov 21, 2018
    • Alex Crichton's avatar
      Prepare for being included via crates.io into std · 91bd079e
      Alex Crichton authored
      This commit prepares the `libc` crate to be included directly into the
      standard library via crates.io. More details about this can be found on
      rust-lang/rust#56092, but the main idea is that this crate now depends
      on core/compiler-builtins explicitly (but off-by-default).
      
      The main caveat here is that this activates `no_core` when building as
      part of libstd, which means that it needs to explicitly have an `iter`
      and `option` module for the expansion of `for` loops to work.
      91bd079e
    • gnzlbg's avatar
  28. Nov 20, 2018
  29. Nov 19, 2018
Loading