aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Lawrence <paullawrence@google.com>2017-03-28 15:20:49 -0700
committerPaul Lawrence <paullawrence@google.com>2017-03-29 07:58:54 -0700
commit9ec051c31fd967c1b0ddcccb7e0cc2bcf61f90ca (patch)
treeec02e0e29aa1df5271064089d5a3421026458541
parent1a370139d15a12580e66cbf3c594b554e8ba801c (diff)
downloadseccomp-tests-9ec051c31fd967c1b0ddcccb7e0cc2bcf61f90ca.tar.gz
Fix seccomp test on bullhead
Note that this does not make the test pass (see other fix) but does remove another libc error message Test: Run on bullhead and sailfish - libc warning is now gone Bug: 36656103 Change-Id: Ie1f82cf274e08bdbd6fd97420f4dd5ad1bd0e02d
-rw-r--r--linux/seccomp_bpf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/seccomp_bpf.c b/linux/seccomp_bpf.c
index 6f5b786..949ac25 100644
--- a/linux/seccomp_bpf.c
+++ b/linux/seccomp_bpf.c
@@ -1803,8 +1803,10 @@ TEST_F(TSYNC, siblings_fail_prctl)
/* Ensure diverging sibling failed to call prctl. */
pthread_join(self->sibling[0].tid, &status);
EXPECT_EQ(SIBLING_EXIT_FAILURE, (long)status);
+ self->sibling[0].tid = 0;
pthread_join(self->sibling[1].tid, &status);
EXPECT_EQ(SIBLING_EXIT_UNKILLED, (long)status);
+ self->sibling[1].tid = 0;
}
TEST_F(TSYNC, two_siblings_with_ancestor)