diff options
author | Sven Gothel <[email protected]> | 2022-02-07 02:15:07 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-02-07 02:15:07 +0100 |
commit | 97d0ed973aaa62f5c138ff37428fbae03be6a667 (patch) | |
tree | d863c6d07ae6011dcd1cfca19b4d25817dead61d /trial/java/CMakeLists.txt | |
parent | 42d1296cb7b269d164574ed1de35d04109c87e60 (diff) |
Fix trial/java/CMakeLists.txt: Use proper environment variable USER for capsh commandv2.6.0
Diffstat (limited to 'trial/java/CMakeLists.txt')
-rw-r--r-- | trial/java/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trial/java/CMakeLists.txt b/trial/java/CMakeLists.txt index 85b1ab4f..a379be4b 100644 --- a/trial/java/CMakeLists.txt +++ b/trial/java/CMakeLists.txt @@ -32,7 +32,7 @@ set( TARGETS_IDIOMATIC_EXAMPLES ${BASENAMES_IDIOMATIC_EXAMPLES} ) 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 - --keep=1 --user=sven --addamb=cap_net_raw,cap_net_admin+eip + --keep=1 --user=$ENV{USER} --addamb=cap_net_raw,cap_net_admin+eip -- -c "ulimit -c unlimited; $EXE_WRAPPER ${JAVA_RUNTIME} -cp ${JUNIT_JAR}:${direct_bt_fat_jar_file}:${jaulib_test_jar_file}:${direct_bt_trial_jar_file} org.junit.runner.JUnitCore ${name}") endforeach() |