diff options
| author | Tom Eccles <tom.eccles@codethink.co.uk> | 2020-06-09 15:44:31 +0100 |
|---|---|---|
| committer | Tom Eccles <tom.eccles@codethink.co.uk> | 2020-06-09 16:22:21 +0100 |
| commit | 253112d43c46f9c0c6c854dcc2c858741616deed (patch) | |
| tree | b052c2cbac7596aee8b3db5a36dfd6298aa2c5bf | |
| parent | a008a55ff680ec600b5617d6a1f1701450aa8911 (diff) | |
| download | rust-253112d43c46f9c0c6c854dcc2c858741616deed.tar.gz rust-253112d43c46f9c0c6c854dcc2c858741616deed.zip | |
Mark tests whcih don't work under riscv emulation
| -rw-r--r-- | src/libstd/sys/unix/process/process_common.rs | 1 | ||||
| -rw-r--r-- | src/libstd/time.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/process/process_common.rs b/src/libstd/sys/unix/process/process_common.rs index 2d7267263de..6e33cdd3c48 100644 --- a/src/libstd/sys/unix/process/process_common.rs +++ b/src/libstd/sys/unix/process/process_common.rs @@ -428,6 +428,7 @@ mod tests { // ignored there. #[cfg_attr(target_arch = "arm", ignore)] #[cfg_attr(target_arch = "aarch64", ignore)] + #[cfg_attr(target_arch = "riscv64", ignore)] fn test_process_mask() { unsafe { // Test to make sure that a signal mask does not get inherited. diff --git a/src/libstd/time.rs b/src/libstd/time.rs index c36e78b1d00..9e4ecc9a80d 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -796,11 +796,11 @@ mod tests { // Right now for CI this test is run in an emulator, and apparently the // aarch64 emulator's sense of time is that we're still living in the - // 70s. + // 70s. This is also true for riscv (also qemu) // // Otherwise let's assume that we're all running computers later than // 2000. - if !cfg!(target_arch = "aarch64") { + if !cfg!(target_arch = "aarch64") && !cfg!(target_arch = "riscv64") { assert!(a > thirty_years); } |
