File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,9 @@ mod test_prctl {
9999 prctl:: set_timerslack ( original) . unwrap ( ) ;
100100 }
101101
102+ // Loongarch need to use a newer QEMU that disabled these PRCTL subcodes/methods.
103+ // So we should ignore them when testing in QEMU environments.
104+ #[ cfg_attr( all( qemu, target_arch = "loongarch64" ) , ignore) ]
102105 #[ test]
103106 fn test_disable_enable_perf_events ( ) {
104107 prctl:: task_perf_events_disable ( ) . unwrap ( ) ;
@@ -112,6 +115,9 @@ mod test_prctl {
112115 assert ! ( no_new_privs) ;
113116 }
114117
118+ // Loongarch need to use a newer QEMU that disabled these PRCTL subcodes/methods
119+ // So we should ignore them when testing in QEMU environments.
120+ #[ cfg_attr( all( qemu, target_arch = "loongarch64" ) , ignore) ]
115121 #[ test]
116122 fn test_get_set_thp_disable ( ) {
117123 let original = prctl:: get_thp_disable ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments