[Openmp-commits] [openmp] e66876f - [OpenMP][Tools] Have sort(1) not use long name parameters (#73477)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 27 10:23:28 PST 2023


Author: Brad Smith
Date: 2023-11-27T13:23:25-05:00
New Revision: e66876f2e05faa82ffee8e3c28cbfe0637193b99

URL: https://github.com/llvm/llvm-project/commit/e66876f2e05faa82ffee8e3c28cbfe0637193b99
DIFF: https://github.com/llvm/llvm-project/commit/e66876f2e05faa82ffee8e3c28cbfe0637193b99.diff

LOG: [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]
 `-----------------------------

Added: 
    

Modified: 
    openmp/tools/multiplex/tests/lit.cfg

Removed: 
    


################################################################################
diff  --git a/openmp/tools/multiplex/tests/lit.cfg b/openmp/tools/multiplex/tests/lit.cfg
index a637d6f72f55250..459250582ae95c7 100644
--- a/openmp/tools/multiplex/tests/lit.cfg
+++ b/openmp/tools/multiplex/tests/lit.cfg
@@ -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"))


        


More information about the Openmp-commits mailing list