Skip to content

Commit 253112d

Browse files
committed
Mark tests whcih don't work under riscv emulation
1 parent a008a55 commit 253112d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libstd/sys/unix/process/process_common.rs

+1
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ mod tests {
428428
// ignored there.
429429
#[cfg_attr(target_arch = "arm", ignore)]
430430
#[cfg_attr(target_arch = "aarch64", ignore)]
431+
#[cfg_attr(target_arch = "riscv64", ignore)]
431432
fn test_process_mask() {
432433
unsafe {
433434
// Test to make sure that a signal mask does not get inherited.

src/libstd/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -796,11 +796,11 @@ mod tests {
796796

797797
// Right now for CI this test is run in an emulator, and apparently the
798798
// aarch64 emulator's sense of time is that we're still living in the
799-
// 70s.
799+
// 70s. This is also true for riscv (also qemu)
800800
//
801801
// Otherwise let's assume that we're all running computers later than
802802
// 2000.
803-
if !cfg!(target_arch = "aarch64") {
803+
if !cfg!(target_arch = "aarch64") && !cfg!(target_arch = "riscv64") {
804804
assert!(a > thirty_years);
805805
}
806806

0 commit comments

Comments
 (0)