Skip to content

Commit

Permalink
tests: Skip /umockdev-run/umockdev-record-null-roundtrip
Browse files Browse the repository at this point in the history
Running stat or any other program crashes in Gentoo's sandbox when
running umockdev-run. Skip this new test for the time being, to avoid a
package build failure.

Fixes #182
  • Loading branch information
martinpitt committed May 20, 2022
1 parent ed29c01 commit 9396f75
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test-umockdev-run.vala
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@ t_run_record_null ()
return;
}

// stat or other programs segfault under Gentoo's sandbox in umockdev
if (Environ.get_variable(Environ.get(), "SANDBOX_ON") == "1") {
stdout.printf ("[SKIP: crashes in Gentoo's sandbox] ");
stdout.flush ();
return;
}

Posix.close (checked_open_tmp ("null.XXXXXX.umockdev", out umockdev_file));
assert (get_program_out ("true", umockdev_record_command + "/dev/null", out sout, out serr, out exit));
assert_cmpstr (serr, CompareOperator.EQ, "");
Expand Down

0 comments on commit 9396f75

Please sign in to comment.