File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,10 @@ mod test_prctl {
99
99
prctl:: set_timerslack ( original) . unwrap ( ) ;
100
100
}
101
101
102
+ // Loongarch need to use a newer QEMU that disabled these PRCTL subcodes/methods.
103
+ // https://github.com/qemu/qemu/commit/220717a6f46a99031a5b1af964bbf4dec1310440
104
+ // So we should ignore them when testing in QEMU environments.
105
+ #[ cfg_attr( all( qemu, target_arch = "loongarch64" ) , ignore) ]
102
106
#[ test]
103
107
fn test_disable_enable_perf_events ( ) {
104
108
prctl:: task_perf_events_disable ( ) . unwrap ( ) ;
@@ -112,6 +116,10 @@ mod test_prctl {
112
116
assert ! ( no_new_privs) ;
113
117
}
114
118
119
+ // Loongarch need to use a newer QEMU that disabled these PRCTL subcodes/methods
120
+ // https://github.com/qemu/qemu/commit/220717a6f46a99031a5b1af964bbf4dec1310440
121
+ // So we should ignore them when testing in QEMU environments.
122
+ #[ cfg_attr( all( qemu, target_arch = "loongarch64" ) , ignore) ]
115
123
#[ test]
116
124
fn test_get_set_thp_disable ( ) {
117
125
let original = prctl:: get_thp_disable ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments