Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7e6234

Browse files
committed
px4_posix: increase posix stack overhead (mostly for ASan)
- sync address sanitizer SITL tests
1 parent 6a0f524 commit f7e6234

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.ci/Jenkinsfile-SITL_tests_ASan

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,26 @@ pipeline {
8080
mission: "VTOL_mission_1",
8181
vehicle: "tailsitter"
8282
],
83-
// [
84-
// name: "VTOL_tiltrotor",
85-
// test: "mavros_posix_test_mission.test",
86-
// mission: "VTOL_mission_1",
87-
// vehicle: "tiltrotor"
88-
// ],
83+
[
84+
name: "VTOL_tiltrotor",
85+
test: "mavros_posix_test_mission.test",
86+
mission: "VTOL_mission_1",
87+
vehicle: "tiltrotor"
88+
],
89+
[
90+
name: "MC_avoidance",
91+
test: "mavros_posix_test_avoidance.test",
92+
mission: "avoidance",
93+
vehicle: "iris_obs_avoid",
94+
run_script: "rostest_avoidance_run.sh"
95+
],
96+
[
97+
name: "MC_safe_landing",
98+
test: "mavros_posix_test_safe_landing.test",
99+
mission: "MC_safe_landing",
100+
vehicle: "iris_obs_avoid",
101+
run_script: "rostest_avoidance_run.sh"
102+
],
89103

90104
]
91105

@@ -119,6 +133,7 @@ def createTestNode(Map test_def) {
119133
cleanWs()
120134
docker.image("px4io/px4-dev-ros-kinetic:2019-10-04").inside('-e HOME=${WORKSPACE}') {
121135
stage(test_def.name) {
136+
def run_script = test_def.get('run_script', 'rostest_px4_run.sh')
122137
def test_ok = true
123138
sh('export')
124139

@@ -127,7 +142,7 @@ def createTestNode(Map test_def) {
127142

128143
// run test
129144
try {
130-
sh('px4-px4_sitl_default*/px4/test/rostest_px4_run.sh ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle)
145+
sh('px4-px4_sitl_default*/px4/test/' + run_script + ' ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle)
131146

132147
} catch (exc) {
133148
// save all test artifacts for debugging

src/platforms/px4_posix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ typedef struct pollfd px4_pollfd_struct_t;
8181

8282
#elif defined(__PX4_POSIX)
8383

84-
#define PX4_STACK_OVERHEAD 8192
84+
#define PX4_STACK_OVERHEAD (1024 * 11)
8585

8686
/**
8787
* Terminates the calling process immediately.

0 commit comments

Comments
 (0)