File tree Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,10 @@ if(LINUX AND UMF_BUILD_LIBUMF_POOL_SCALABLE)
137
137
COMMAND ${BASE_NAME} .sh
138
138
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
139
139
140
- set_tests_properties (${EXAMPLE_NAME} PROPERTIES LABELS "example" )
140
+ set_tests_properties (
141
+ ${EXAMPLE_NAME} PROPERTIES
142
+ SKIP_RETURN_CODE 125
143
+ LABELS "example" )
141
144
else ()
142
145
message (
143
146
STATUS
Original file line number Diff line number Diff line change 20
20
if [ -f $PTRACE_SCOPE_FILE ]; then
21
21
PTRACE_SCOPE_VAL=$( cat $PTRACE_SCOPE_FILE )
22
22
if [ $PTRACE_SCOPE_VAL -ne $VAL ]; then
23
- # check if sudo requires password
24
- if ! timeout --kill-after=5s 3s sudo date; then
25
- echo " ERROR: sudo requires password - cannot set ptrace_scope to 0"
26
- exit 1
27
- fi
28
- echo " Setting ptrace_scope to 0 (classic ptrace permissions) ..."
29
- echo " $ sudo bash -c \" echo $VAL > $PTRACE_SCOPE_FILE \" "
30
- sudo bash -c " echo $VAL > $PTRACE_SCOPE_FILE "
31
- fi
32
- PTRACE_SCOPE_VAL=$( cat $PTRACE_SCOPE_FILE )
33
- if [ $PTRACE_SCOPE_VAL -ne $VAL ]; then
34
- echo " SKIP: setting ptrace_scope to 0 (classic ptrace permissions) FAILED - skipping the test"
35
- exit 0
23
+ echo " SKIP: ptrace_scope is not set to 0 (classic ptrace permissions) - skipping the test"
24
+ exit 125 # skip code defined in CMakeLists.txt
36
25
fi
37
26
fi
38
27
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ if(LINUX)
257
257
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
258
258
259
259
set_tests_properties (${TEST_NAME} PROPERTIES LABELS "umf" )
260
+ set_tests_properties (${TEST_NAME} PROPERTIES SKIP_RETURN_CODE 125 )
260
261
else ()
261
262
message (
262
263
STATUS "IPC shared memory test is supported on Linux only - skipping" )
Original file line number Diff line number Diff line change 20
20
if [ -f $PTRACE_SCOPE_FILE ]; then
21
21
PTRACE_SCOPE_VAL=$( cat $PTRACE_SCOPE_FILE )
22
22
if [ $PTRACE_SCOPE_VAL -ne $VAL ]; then
23
- # check if sudo requires password
24
- if ! timeout --kill-after=5s 3s sudo date; then
25
- echo " ERROR: sudo requires password - cannot set ptrace_scope to 0"
26
- exit 1
27
- fi
28
- echo " Setting ptrace_scope to 0 (classic ptrace permissions) ..."
29
- echo " $ sudo bash -c \" echo $VAL > $PTRACE_SCOPE_FILE \" "
30
- sudo bash -c " echo $VAL > $PTRACE_SCOPE_FILE "
31
- fi
32
- PTRACE_SCOPE_VAL=$( cat $PTRACE_SCOPE_FILE )
33
- if [ $PTRACE_SCOPE_VAL -ne $VAL ]; then
34
- echo " SKIP: setting ptrace_scope to 0 (classic ptrace permissions) FAILED - skipping the test"
35
- exit 0
23
+ echo " SKIP: ptrace_scope is not set to 0 (classic ptrace permissions) - skipping the test"
24
+ exit 125 # skip code defined in CMakeLists.txt
36
25
fi
37
26
fi
38
27
You can’t perform that action at this time.
0 commit comments