diff options
Diffstat (limited to 'test-suite/tests/threads.test')
-rw-r--r-- | test-suite/tests/threads.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/tests/threads.test b/test-suite/tests/threads.test index 1166247c4..db002f245 100644 --- a/test-suite/tests/threads.test +++ b/test-suite/tests/threads.test @@ -463,3 +463,17 @@ (lambda () (lock-mutex m)) (lambda key (set! success #t))) success))))) + + +;; +;; nproc +;; + +(with-test-prefix "nproc" + + (pass-if "total-processor-count" + (>= (total-processor-count) 1)) + + (pass-if "current-processor-count" + (and (>= (current-processor-count) 1) + (>= (total-processor-count) (current-processor-count))))) |