Skip to content

Commit 7987fc0

Browse files
committed
Fix logic to match old script
1 parent d15b75f commit 7987fc0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ if (LPF_ENABLE_TESTS)
404404
# maximum LPF processes. If, at CMake configuration, the number of detected
405405
# processes is smaller, it overrides the desired number of maximum LPF
406406
# processes. If the test does not define a desired number of maximum LPF
407-
# processes, it will be set to the detected number of processes.
407+
# processes, it will be set to five.
408408
#
409409
# The "\pre P >= min" comment in a test indicates the desired number of
410410
# minimum LPF processes. If the number of detected processes is smaller, it
@@ -429,7 +429,7 @@ if (LPF_ENABLE_TESTS)
429429
ProcessorCount(minProcs)
430430
endif()
431431
if ("${maxProcs}" STREQUAL "")
432-
ProcessorCount(maxProcs)
432+
ProcessorCount(5)
433433
endif()
434434
if ("${minProcs}" GREATER "${nprocs}")
435435
set(minProcs ${nprocs})
@@ -451,7 +451,7 @@ if (LPF_ENABLE_TESTS)
451451
EXTRA_ARGS --gtest_output=xml:${test_output}/${ENGINE}_${testName}
452452
DISCOVERY_MODE POST_BUILD
453453
DISCOVERY_TIMEOUT 15
454-
)
454+
)
455455

456456

457457
endfunction(add_gtest)

tests/functional/func_lpf_put_parallel_bad_pattern.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ void spmd( lpf_t lpf, lpf_pid_t pid, lpf_pid_t nprocs, lpf_args_t args)
9595

9696
/**
9797
* \test Test lpf_put by doing a pattern which bad for a sparse all-to-all
98+
* \pre P <= 1024
99+
* \pre P >= 1024
98100
* \return Exit code: 0
99101
*/
100102
TEST( API, func_lpf_put_parallel_bad_pattern )

0 commit comments

Comments
 (0)