Skip to content

Commit e4c7acc

Browse files
authored
Merge pull request #4018 from tgross35/sort-semver-files
Ensure that semver files are always sorted in CI
2 parents f9f72de + accd3b2 commit e4c7acc

32 files changed

+2743
-2736
lines changed

ci/style.sh

100644100755
+11-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ HWCAP2_SVESM4
1212
PROT_BTI
1313
PROT_MTE
1414
SYS_arch_specific_syscall
15+
SYS_fcntl
1516
SYS_lseek
1617
SYS_memfd_secret
1718
SYS_mmap
1819
SYS_syscalls
19-
SYS_fcntl
2020
__system_property_wait
21-
user_regs_struct
2221
user_fpsimd_struct
22+
user_regs_struct

0 commit comments

Comments
 (0)