File tree Expand file tree Collapse file tree 7 files changed +29
-5
lines changed Expand file tree Collapse file tree 7 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 42
42
- name : Install Python requirements
43
43
run : python3 -m pip install -r third_party/requirements.txt
44
44
45
+ - name : Set ptrace value for IPC test
46
+ run : bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
47
+
45
48
- name : Configure build
46
49
run : >
47
50
cmake
@@ -137,6 +140,9 @@ jobs:
137
140
- name : Install libhwloc
138
141
run : .github/scripts/install_hwloc.sh
139
142
143
+ - name : Set ptrace value for IPC test
144
+ run : sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
145
+
140
146
- name : Configure build
141
147
run : >
142
148
cmake
Original file line number Diff line number Diff line change 63
63
sudo apt-get update
64
64
sudo apt-get install -y cmake libjemalloc-dev libhwloc-dev libnuma-dev libtbb-dev
65
65
66
+ - name : Set ptrace value for IPC test (on Linux only)
67
+ if : matrix.os == 'ubuntu-latest'
68
+ run : sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
69
+
66
70
- name : Configure CMake
67
71
run : >
68
72
cmake
Original file line number Diff line number Diff line change 27
27
sudo apt-get update
28
28
sudo apt-get install -y cmake libhwloc-dev libjemalloc-dev libtbb-dev
29
29
30
+ - name : Set ptrace value for IPC test
31
+ run : sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
32
+
30
33
- name : Configure build
31
34
run : >
32
35
cmake
Original file line number Diff line number Diff line change 34
34
apt-get update
35
35
apt-get install -y cmake libnuma-dev libjemalloc-dev libtbb-dev libhwloc-dev sudo
36
36
37
+ - name : Set ptrace value for IPC test
38
+ run : bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
39
+
37
40
- name : Configure build
38
41
run : >
39
42
cmake
79
82
sudo apt-get update
80
83
sudo apt-get install -y clang cmake libhwloc-dev libnuma-dev libjemalloc-dev libtbb-dev
81
84
85
+ - name : Set ptrace value for IPC test
86
+ run : sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
87
+
82
88
- name : Configure build
83
89
run : >
84
90
cmake
Original file line number Diff line number Diff line change @@ -137,10 +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 (
141
- ${EXAMPLE_NAME} PROPERTIES
142
- SKIP_RETURN_CODE 125
143
- LABELS "example" )
140
+ set_tests_properties (${EXAMPLE_NAME} PROPERTIES LABELS "example" )
141
+ if ( NOT UMF_TESTS_FAIL_ON_SKIP )
142
+ set_tests_properties ( ${EXAMPLE_NAME} PROPERTIES SKIP_RETURN_CODE 125 )
143
+ endif ( )
144
144
else ()
145
145
message (
146
146
STATUS
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ branch=$2
12
12
echo password | sudo -Sk apt update
13
13
echo password | sudo -Sk apt install -y git cmake gcc g++ numactl libnuma-dev libhwloc-dev libjemalloc-dev libtbb-dev pkg-config valgrind hwloc
14
14
15
+ # Set ptrace value for IPC test
16
+ echo password | sudo bash -c " echo 0 > /proc/sys/kernel/yama/ptrace_scope"
17
+
15
18
numactl -H
16
19
17
20
git clone $repo umf
Original file line number Diff line number Diff line change @@ -257,7 +257,9 @@ 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
+ if (NOT UMF_TESTS_FAIL_ON_SKIP )
261
+ set_tests_properties (${TEST_NAME} PROPERTIES SKIP_RETURN_CODE 125 )
262
+ endif ()
261
263
else ()
262
264
message (
263
265
STATUS "IPC shared memory test is supported on Linux only - skipping" )
You can’t perform that action at this time.
0 commit comments