diff options
Diffstat (limited to 'trial')
-rw-r--r-- | trial/direct_bt/CMakeLists.txt | 2 | ||||
-rw-r--r-- | trial/java/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/trial/direct_bt/CMakeLists.txt b/trial/direct_bt/CMakeLists.txt index 14c13f89..e982207f 100644 --- a/trial/direct_bt/CMakeLists.txt +++ b/trial/direct_bt/CMakeLists.txt @@ -11,7 +11,7 @@ foreach( name ${TARGETS_IDIOMATIC_TRIALS} ) add_executable(${name} ${name}.cpp) target_link_libraries(${name} direct_bt catch2) add_dependencies(${name} direct_bt catch2) - add_test (NAME ${name} COMMAND sudo /sbin/capsh --caps=cap_net_raw,cap_net_admin+eip\ cap_setpcap,cap_setuid,cap_setgid+ep + add_test (NAME ${name} COMMAND sudo -E /sbin/capsh --caps=cap_net_raw,cap_net_admin+eip\ cap_setpcap,cap_setuid,cap_setgid+ep --keep=1 --user=$ENV{USER} --addamb=cap_net_raw,cap_net_admin+eip -- -c "ulimit -c unlimited; ./${name}") endforeach() diff --git a/trial/java/CMakeLists.txt b/trial/java/CMakeLists.txt index 3d2b31a7..c8d86245 100644 --- a/trial/java/CMakeLists.txt +++ b/trial/java/CMakeLists.txt @@ -31,7 +31,7 @@ set( TARGETS_IDIOMATIC_EXAMPLES ${BASENAMES_IDIOMATIC_EXAMPLES} ) #endforeach() foreach(name ${TARGETS_IDIOMATIC_EXAMPLES}) - add_test (NAME ${name} COMMAND sudo /sbin/capsh --caps=cap_net_raw,cap_net_admin+eip\ cap_setpcap,cap_setuid,cap_setgid+ep + add_test (NAME ${name} COMMAND sudo -E /sbin/capsh --caps=cap_net_raw,cap_net_admin+eip\ cap_setpcap,cap_setuid,cap_setgid+ep --keep=1 --user=$ENV{USER} --addamb=cap_net_raw,cap_net_admin+eip -- -c "ulimit -c unlimited; ${JAVA_RUNTIME} -cp ${JUNIT_JAR}:${direct_bt_jar_file}:${jaulib_base_jar_file}:${jaulib_test_jar_file}:${direct_bt_trial_jar_file} -Djava.library.path=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} org.junit.runner.JUnitCore ${name}") endforeach() |