Resolve "Use `SCORD_TRANSPORT_PROTOCOL` in tests instead of hardcoded `ofi+tcp` string"

Closes #55 (closed)

Edited by Alberto Miranda

Merge request reports

Loading
+1 −1
Changes for examples/c/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ endforeach()

if(SCORD_BUILD_TESTS)
  foreach(example IN LISTS examples_c)
    add_test(${example}_c_test ${example} ofi+tcp://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT})
    add_test(${example}_c_test ${example} ${SCORD_TRANSPORT_PROTOCOL}://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT})
    set_tests_properties(${example}_c_test
      PROPERTIES FIXTURES_REQUIRED scord_daemon)
  endforeach()
+1 −1
Changes for examples/cxx/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ endforeach()

if(SCORD_BUILD_TESTS)
  foreach(example IN LISTS examples_cxx)
    add_test(${example}_cxx_test ${example} ofi+tcp://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT})
    add_test(${example}_cxx_test ${example} ${SCORD_TRANSPORT_PROTOCOL}://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT})
    set_tests_properties(${example}_cxx_test
      PROPERTIES FIXTURES_REQUIRED scord_daemon)
  endforeach()
Loading