diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-12-11 15:39:26 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-12-11 15:39:26 +0000 |
commit | 7bbc1a782f98691be1d0f1799be675da9255c11b (patch) | |
tree | 3ce4a919c684c192b29015d6c9138c7491bf8a39 /openmp | |
parent | e9d4267277068ad46a20cf6001a7077d89244401 (diff) | |
download | llvm-7bbc1a782f98691be1d0f1799be675da9255c11b.zip llvm-7bbc1a782f98691be1d0f1799be675da9255c11b.tar.gz llvm-7bbc1a782f98691be1d0f1799be675da9255c11b.tar.bz2 |
[runtime] [test] Use more portable short options to sort(1)
Pass `-n -s` instead of `--numeric --stable` to sort(1), as long options
are not supported by NetBSD sort implementation. `-n` is defined
by POSIX, so it should be fully portable. `-s` is used consistently
at least in GNU sort and FreeBSD sort, and I honestly doubt it would
cause issues with any other implementation supporting `--stable`.
Differential Revision: https://reviews.llvm.org/D55479
llvm-svn: 348855
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/test/lit.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg index 9f0c059..7196d37 100644 --- a/openmp/runtime/test/lit.cfg +++ b/openmp/runtime/test/lit.cfg @@ -116,7 +116,7 @@ config.substitutions.append(("%flags", config.test_flags)) if config.has_ompt: config.substitutions.append(("FileCheck", config.test_filecheck)) - config.substitutions.append(("%sort-threads", "sort --numeric-sort --stable")) + config.substitutions.append(("%sort-threads", "sort -n -s")) if config.operating_system == 'Windows': # No such environment variable on Windows. config.substitutions.append(("%preload-tool", "true ||")) |