Skip to content

Commit

Permalink
Disable some nested rr tests for now, when ran with address sanitizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardu committed Jun 14, 2021
1 parent 8b91430 commit 1ed97e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ option(asan "Build with address santitizer enabled.")
if (asan)
set(ASAN_FLAGS "-fno-omit-frame-pointer -fsanitize=address")
set(RR_FLAGS "${ASAN_FLAGS} ${RR_FLAGS}")
list(APPEND DISABLED_TESTS nested_detach-no-syscallbuf)
list(APPEND DISABLED_TESTS nested_detach-32-no-syscallbuf)
endif()

set_source_files_properties(${RR_SOURCES}
Expand Down Expand Up @@ -1561,6 +1563,11 @@ if(BUILD_TESTS)
endfunction(configure_test)

function(rr_add_test test command testname syscallbuf bin_dir timeout)
list (FIND DISABLED_TESTS "${test}" _index)
if (${_index} GREATER -1)
message("Test disabled: ${test}")
return()
endif()
add_test("${test}" "bash" "${command}" "${testname}" "${syscallbuf}" "${bin_dir}" "${timeout}")
configure_test(${test})
endfunction(rr_add_test)
Expand Down

0 comments on commit 1ed97e6

Please sign in to comment.