svn commit: r344783 - projects/fuse2/tests/sys/fs/fuse

Alan Somers asomers at FreeBSD.org
Mon Mar 4 22:03:10 UTC 2019


Author: asomers
Date: Mon Mar  4 22:03:09 2019
New Revision: 344783
URL: https://svnweb.freebsd.org/changeset/base/344783

Log:
  fuse(4): fix the entry_cache_negative_timeout test
  
  I committed too soon in r344775; the test actually passes when I write it
  correctly.
  
  PR:		236226
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/fuse2/tests/sys/fs/fuse/lookup.cc

Modified: projects/fuse2/tests/sys/fs/fuse/lookup.cc
==============================================================================
--- projects/fuse2/tests/sys/fs/fuse/lookup.cc	Mon Mar  4 22:01:09 2019	(r344782)
+++ projects/fuse2/tests/sys/fs/fuse/lookup.cc	Mon Mar  4 22:03:09 2019	(r344783)
@@ -225,8 +225,7 @@ TEST_F(Lookup, DISABLED_entry_cache_negative)
 }
 
 /* Negative entry caches should timeout, too */
-/* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236226 */
-TEST_F(Lookup, DISABLED_entry_cache_negative_timeout)
+TEST_F(Lookup, entry_cache_negative_timeout)
 {
 	/* 
 	 * The timeout should be longer than the longest plausible time the
@@ -239,8 +238,8 @@ TEST_F(Lookup, DISABLED_entry_cache_negative_timeout)
 			return (in->header.opcode == FUSE_LOOKUP);
 		}, Eq(true)),
 		_)
-	).Times(1)
-	.WillOnce(Invoke([=](auto in, auto out) {
+	).Times(2)
+	.WillRepeatedly(Invoke([=](auto in, auto out) {
 		out->header.unique = in->header.unique;
 		out->header.error = 0;
 		out->body.entry.nodeid = 0;


More information about the svn-src-projects mailing list