Commit 74c4862
committed
fix(cksum): exclude Android from --debug flag tests
The --debug flag tests 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 excludes the debug flag tests from Android builds by adding
#[cfg(not(target_os = "android"))] attributes to:
- test_debug_flag()
- test_debug_with_algorithms()
These tests are not needed on Android since the --debug flag functionality
is not critical for the Android build, and the CPUID instruction is not
available on the emulator.
Fixes: Android CI job failure with exit code 137
Resolves: PR uutils#9088 Android x86_64 emulator crash during tests1 parent d78e7d1 commit 74c4862
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
| 2750 | + | |
2750 | 2751 | | |
2751 | 2752 | | |
2752 | 2753 | | |
| |||
2792 | 2793 | | |
2793 | 2794 | | |
2794 | 2795 | | |
| 2796 | + | |
2795 | 2797 | | |
2796 | 2798 | | |
2797 | 2799 | | |
| |||
0 commit comments