Commit d78e7d1
committed
fix(cksum): exclude Android from CPU feature detection tests
The test functions test_cpu_features_detection, test_cpu_features_cached, and
test_cpu_features_on_x86_64 call CpuFeatures::detect() which executes the x86
CPUID instruction. On the Android x86_64 emulator, this crashes the adb process
with exit code 137 (SIGKILL).
This fix adds #[cfg(not(target_os = "android"))] attributes to these tests
to prevent them from running on Android, where the CPUID instruction is not
supported by the emulator.
Fixes: Android CI test failure with exit code 137
Resolves: PR uutils#9088 Android x86_64 emulator crash during tests1 parent 4f9f6cc commit d78e7d1
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| 144 | + | |
142 | 145 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
0 commit comments