summaryrefslogtreecommitdiff
path: root/test/sys/test_uio.rs
AgeCommit message (Collapse)Author
2021-08-28Merge #1506bors[bot]
1506: Test Linux aarch64 on real aarch64 hardware. r=asomers a=asomers Co-authored-by: Alan Somers <asomers@gmail.com>
2021-08-27Ignore vsock tests on Linux aarch64Alan Somers
Apparently AWS Graviton containers don't support it. socket() retunrs EAFNOSUPPORT in that environment. Also, be more selective about skipping tests under QEMU Instead of skipping them on architectures where we happen to use QEMU, only skip them when QEMU is actually being used.
2021-08-22Print function name and missing capability when skipping testsRyan Zoeller
2021-05-30misc Clippy cleanupAlan Somers
* Fix race conditions in the tests. Two tests were grabbing a mutex but immediately dropping it. Thank you, Clippy. * Remove vestigial Windows support. Remove some code added to support Windows in 2015. Nix is no longer intended to ever run on Windows. * Various other minor Clippy lints.
2021-02-20Update rand to 0.8Alan Somers
This eliminates some duplicate dependencies
2020-12-06Switch all builds from Travis to CirrusAlan Somers
Travis has been super-slow lately (> 6 hours per build). Cirrus is much faster: about 20 minutes. Cirrus also has slightly better test coverage, mainly because it doesn't use SECCOMP. Also, * Fix the Redox CI build. The old Travis configuration didn't actually build for Redox, so we never noticed that Redox can't be built with a stable compiler. Thanks to @coolreader18 for finding this. * Disable the udp_offload tests on cross-tested platforms. These tests are failing with ENOPROTOOPT in Cirrus-CI. I suspect it's due to a lack of support in QEMU. These tests were skipped on Travis because its kernel was too old. * Fix require_kernel_version on Cirrus-CI. Cirrus reports the Linux kernel version as 4.19.112+, which the semver crate can't handle. * Fix test_setfsuid on Cirrus. When run on Cirrus, it seems like the file in /tmp gets deleted as soon as it's closed. Probably an overzealous temporary file cleaner. Use /var/tmp, because no temporary file cleaner should run in there. * Skip mount tests on Cirrus. They fail for an unknown reason. Issue #1351 * Skip the AF_ALG tests on Cirrus-CI Issue #1352
2020-09-20Mark nix::unistd::fork as unsafe.Vitaly _Vi Shukela
Fix tests. No change in documentation. Resolves #1030.
2020-05-31Convert the crate to edition 2018Alan Somers
2020-05-17Remove warnings when compiling for RedoxXavier L'Heureux
2020-05-17Remove temporarily the failing tests for RedoxXavier L'Heureux
TODO: Fix them in Relibc
2019-09-19Require CAP_SYS_PTRACE for certain testsAlan Somers
process_vm_readv requires it, and I'm not exactly sure which other things do too.
2018-09-05Replace allow unused directive with _ prefixPascal Bach
2018-09-05Update to rand 0.5 cratePascal Bach
This avoids having both 0.4 and 0.5 (required by tempfile)
2018-09-01deps: update tempfile to 3Igor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-03Make preadv take immutable slice of IoVecs, fixes #913Jakub OkoĊ„ski
2017-12-20Remove uses of .iter()/.iter_mut()Bryant Mairs
More Rusty to use &X and &mut X where X is a container type.
2017-12-20Remove useless Err(_) match armsBryant Mairs
2017-12-20Use iter::Cloned() instead of closureBryant Mairs
2017-12-20Remove useless vec![]Bryant Mairs
2017-12-02Upgrade to Bitflags 1.0Bryant Mairs
The libc_bitflags! macro was replaced with a non-recursive one supporting only public structs. I could not figure out how to make the old macro work with the upgrade, so I reworked part of the bitflags! macro directly to suit our needs, much as the original recursive macro was made. There are no uses of this macro for non-public structs, so this is not a problem for internal code.
2017-11-08Add process_vm_readv and process_vm_writevGeoffrey Thomas
2017-07-17Remove preadv_pwritev feature in favor of conditional includeBryant Mairs
2016-11-14Get rid of a few test compilation warningsPhilipp Matthias Schaefer
2016-10-23use tempfile in test_pwrite.Alan Somers
2016-01-13Use tempdir for temporary files in testsKamal Marhubi
2015-10-20Only run signalfd tests when feature is setCarl Lerche
2015-07-27Make it compatible for Android.Tim JIANG
* Fixed an unused_import error in `termios.rs` for Android. * Fixed undefined references to `preadv` and `pwritev` for Android - At least they don't exist from API level 3 to 21. * Fixed the uid > 0 and gid > 0 checks in `stat`'s tests - Running the tests by root is possible, especially when running on a rooted Android device. Those changes made rust-nix buildable (again) on Android. All the tests passed as well.
2015-07-13Add support for preadv and pwritev to sys/uio on Linux.Trip Volpe
2015-07-04Fix off-by-one error calling Rng::gen_rangeJoseph Kain
Fix the boundary condition so that we never call Rng::gen_range(64, 64). Helps #144
2015-06-05Add pwrite and preadFlorian Hartwig
2015-03-28Track Rust nightlyCarl Lerche
2015-03-25Track Rust masterCarl Lerche
2015-02-21Fix uio and add SockAddr conversionsCarl Lerche
2015-02-21Cleanup readv & writev + testsCarl Lerche