Skip to content

Commit 8814407

Browse files
authored
Merge pull request #4019 from tgross35/backport-sort-semver-files
[0.2] Ensure that semver files are always sorted in CI
2 parents 58a6e50 + 961cc3d commit 8814407

27 files changed

+2664
-2654
lines changed

ci/style.sh

100644100755
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env sh
1+
#!/bin/sh
22

33
set -ex
44

@@ -18,3 +18,13 @@ else
1818
exit 1
1919
fi
2020

21+
for file in libc-test/semver/*.txt; do
22+
case "$file" in
23+
*TODO*) continue ;;
24+
esac
25+
26+
if ! sort -C "$file"; then
27+
echo "Unsorted semver file $file"
28+
exit 1
29+
fi
30+
done

libc-test/semver/android-aarch64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ HWCAP2_SVESM4
1212
PROT_BTI
1313
PROT_MTE
1414
SYS_arch_specific_syscall
15+
SYS_fcntl
1516
SYS_lseek
1617
SYS_mmap
1718
SYS_syscalls
18-
SYS_fcntl
1919
__system_property_wait
20-
user_regs_struct
2120
user_fpsimd_struct
21+
user_regs_struct

0 commit comments

Comments
 (0)