Add an integration test for the cmsg(3) functions.
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
Showing
- ci/docker/x86_64-rumprun-netbsd/runtest.rs 2 additions, 1 deletionci/docker/x86_64-rumprun-netbsd/runtest.rs
- ci/ios/deploy_and_run_on_ios_simulator.rs 5 additions, 2 deletionsci/ios/deploy_and_run_on_ios_simulator.rs
- ci/run.sh 1 addition, 1 deletionci/run.sh
- ci/runtest-android.rs 5 additions, 3 deletionsci/runtest-android.rs
- ci/test-runner-linux 13 additions, 2 deletionsci/test-runner-linux
- libc-test/Cargo.toml 5 additions, 0 deletionslibc-test/Cargo.toml
- libc-test/build.rs 17 additions, 1 deletionlibc-test/build.rs
- libc-test/src/cmsg.c 28 additions, 0 deletionslibc-test/src/cmsg.c
- libc-test/test/cmsg.rs 99 additions, 0 deletionslibc-test/test/cmsg.rs
libc-test/src/cmsg.c
0 → 100644
libc-test/test/cmsg.rs
0 → 100644
Please register or sign in to comment