Skip to content

Commit

Permalink
px4_posix: increase posix stack overhead (mostly for ASan)
Browse files Browse the repository at this point in the history
 - sync address sanitizer SITL tests
  • Loading branch information
dagar committed Oct 21, 2019
1 parent 6a0f524 commit f7e6234
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
29 changes: 22 additions & 7 deletions .ci/Jenkinsfile-SITL_tests_ASan
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,26 @@ pipeline {
mission: "VTOL_mission_1",
vehicle: "tailsitter"
],
// [
// name: "VTOL_tiltrotor",
// test: "mavros_posix_test_mission.test",
// mission: "VTOL_mission_1",
// vehicle: "tiltrotor"
// ],
[
name: "VTOL_tiltrotor",
test: "mavros_posix_test_mission.test",
mission: "VTOL_mission_1",
vehicle: "tiltrotor"
],
[
name: "MC_avoidance",
test: "mavros_posix_test_avoidance.test",
mission: "avoidance",
vehicle: "iris_obs_avoid",
run_script: "rostest_avoidance_run.sh"
],
[
name: "MC_safe_landing",
test: "mavros_posix_test_safe_landing.test",
mission: "MC_safe_landing",
vehicle: "iris_obs_avoid",
run_script: "rostest_avoidance_run.sh"
],

]

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

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

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

} catch (exc) {
// save all test artifacts for debugging
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/px4_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ typedef struct pollfd px4_pollfd_struct_t;

#elif defined(__PX4_POSIX)

#define PX4_STACK_OVERHEAD 8192
#define PX4_STACK_OVERHEAD (1024 * 11)

/**
* Terminates the calling process immediately.
Expand Down

0 comments on commit f7e6234

Please sign in to comment.