Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2019 18:44:01 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r345809 - projects/fuse2/tests/sys/fs/fusefs
Message-ID:  <201904021844.x32Ii1wR041319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904021844.x32Ii1wR041319>