Skip to content

Commit

Permalink
Fix test gasnet env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Oct 30, 2023
1 parent 89f342b commit ac6c4f2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmake/HPX_AddTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,8 @@ function(add_hpx_test category name)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()

set(ENV_VAR "")
if(HPX_WITH_PARCELPORT_GASNET)
set(ENV_VAR "GASNET_PSHM_NODES=2")
endif()

# cmake-format: off
set(cmd
${ENV_VAR}
"${Python_EXECUTABLE}"
"${_script_location}/bin/hpxrun.py"
${CMAKE_CROSSCOMPILING_EMULATOR}
Expand Down Expand Up @@ -179,7 +173,7 @@ function(add_hpx_test category name)
add_test(NAME "${_full_name}" COMMAND ${cmd} "-p" "lci" "-r" "mpi"
${args}
)
set_tests_properties("${_full_name}" PROPERTIES RUN_SERIAL TRUE)
set_tests_properties("${_full_name}" PROPERTIES RUN_SERIAL TRUE ENVIRONMENT "GASNET_PSHM_NODES=2")
if(${name}_TIMEOUT)
set_tests_properties(
"${_full_name}" PROPERTIES TIMEOUT ${${name}_TIMEOUT}
Expand Down

0 comments on commit ac6c4f2

Please sign in to comment.