summaryrefslogtreecommitdiff
path: root/tests/misc/nproc-positive.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/nproc-positive.sh')
-rwxr-xr-xtests/misc/nproc-positive.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/nproc-positive.sh b/tests/misc/nproc-positive.sh
index a001d8049..fb825facb 100755
--- a/tests/misc/nproc-positive.sh
+++ b/tests/misc/nproc-positive.sh
@@ -35,7 +35,7 @@ for i in 0 ' 1' 1000; do
done
for i in -1 N; do
- nproc --ignore=$i && fail=1
+ returns_ 1 nproc --ignore=$i || fail=1
done
procs=$(OMP_NUM_THREADS=42 nproc --ignore=40)