Commit f3a8e523 authored by Paul's avatar Paul
Browse files

Add ptrace to docker run

parent c1de01f2
......@@ -25,7 +25,7 @@ def rocmtestnode(variant, name, body) {
}
}
withDockerContainer(image: image, args: '--device=/dev/kfd --device=/dev/dri --group-add video') {
withDockerContainer(image: image, args: '--device=/dev/kfd --device=/dev/dri --group-add video --cap-add SYS_PTRACE') {
timeout(time: 1, unit: 'HOURS') {
body(cmake_build)
}
......
......@@ -32,7 +32,13 @@ function(add_test_command NAME EXE)
add_test(NAME ${NAME} COMMAND ${WINE_CMD} cmd /c "${CMAKE_CURRENT_BINARY_DIR}/test_${NAME}.cmd" $<TARGET_FILE:${EXE}>)
else()
if(RTG_TEST_GDB)
add_test(NAME ${NAME} COMMAND ${RTG_GDB} --batch --return-child-result -ex "set disable-randomization off" -ex r -ex bt --args $<TARGET_FILE:${EXE}> ${ARGN})
add_test(NAME ${NAME} COMMAND ${RTG_GDB}
--batch
--return-child-result
-ex "set disable-randomization off"
-ex run
-ex backtrace
--args $<TARGET_FILE:${EXE}> ${ARGN})
else()
add_test(NAME ${NAME} COMMAND ${EXE} ${ARGN})
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment