svn commit: r345809 - projects/fuse2/tests/sys/fs/fusefs
Alan Somers
asomers at FreeBSD.org
Tue Sep 3 14:06:09 UTC 2019
Author: asomers
Date: Tue Apr 2 18:44:01 2019
New Revision: 345809
URL: https://svnweb.freebsd.org/changeset/base/345809
Log:
fusefs: check return value of wait(2) in fork tests
Reported by: ngie
Sponsored by: The FreeBSD Foundation
Modified:
projects/fuse2/tests/sys/fs/fusefs/utils.cc
Modified: projects/fuse2/tests/sys/fs/fusefs/utils.cc
==============================================================================
--- projects/fuse2/tests/sys/fs/fusefs/utils.cc Tue Apr 2 18:09:40 2019 (r345808)
+++ projects/fuse2/tests/sys/fs/fusefs/utils.cc Tue Apr 2 18:44:01 2019 (r345809)
@@ -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);
More information about the svn-src-projects
mailing list