fusefs: check return value of wait(2) in fork tests

Reported by:	ngie
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Alan Somers 2019-04-02 18:44:01 +00:00
parent 9e4448719b
commit 4eb8481630
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=345809

View File

@ -321,7 +321,7 @@ out:
/* Signal the child process to go */
ASSERT_EQ(0, sem_post(sem)) << strerror(errno);
wait(&child_status);
ASSERT_LE(0, wait(&child_status)) << strerror(errno);
ASSERT_EQ(0, WEXITSTATUS(child_status));
} else {
FAIL() << strerror(errno);