[OpenMP][Tools] Have sort(1) not use long name parameters (#73477)

I noticed a few tests were failing on NetBSD. NetBSD's sort(1) does not
support long name parameters unlike GNU and FreeBSD/OpenBSD/DragonFly's
sort(1).

executed command: sort --numeric-sort --stable

 .---command stderr------------
 | sort: unknown option -- -
 | usage: sort [-bdfHilmnrSsu] [-k kstart[,kend]] [-o output] [-R char] [-T dir]
 |              [-t char] [file ...]
 |    or: sort -C|-c [-bdfilnru] [-k kstart[,kend]] [-o output] [-R char]
 |              [-t char] [file]
 `-----------------------------
This commit is contained in:
Brad Smith 2023-11-27 13:23:25 -05:00 committed by GitHub
parent 20406af31b
commit e66876f2e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ if 'Linux' in config.operating_system:
# substitutions
config.substitutions.append(("FileCheck", "tee %%t.out | %s" % config.test_filecheck))
config.substitutions.append(("%sort-threads", "sort --numeric-sort --stable"))
config.substitutions.append(("%sort-threads", "sort -n -s"))
config.substitutions.append(("%libomp-compile-and-run", \
"%libomp-compile && %libomp-run"))