summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-06-17 12:01:10 +0200
committerJim Meyering <meyering@redhat.com>2011-06-17 12:11:03 +0200
commit7df26ae6feb4fdbc5a67b2967a132e14d9fe0003 (patch)
treeeb5a9d95c0f3161378ad8c2c4bcaeff850756933 /tests
parent2e580ca741b83202e6b22e0bb58b18101a443bd8 (diff)
downloadcoreutils-7df26ae6feb4fdbc5a67b2967a132e14d9fe0003.tar.xz
tests: avoid sort-spinlock-abuse false positive under heavy load
* tests/misc/sort-spinlock-abuse: Classify as "very expensive" to avoid unwarranted failure once and for all.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/sort-spinlock-abuse6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/sort-spinlock-abuse b/tests/misc/sort-spinlock-abuse
index 4cf886660..0e1c86bc5 100755
--- a/tests/misc/sort-spinlock-abuse
+++ b/tests/misc/sort-spinlock-abuse
@@ -20,6 +20,12 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ sort
+# This isn't terribly expensive, but it must not be run under heavy load.
+# Since the "very expensive" are already run only with -j1, adding this
+# test to the list ensures it still gets _some_ (albeit minimal) coverage
+# while not causing false-positive failures in day to day runs.
+very_expensive_
+
grep '^#define HAVE_PTHREAD_T 1' "$CONFIG_HEADER" > /dev/null ||
skip_ 'requires pthreads'