Date: Mon, 4 Mar 2019 22:03:10 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r344783 - projects/fuse2/tests/sys/fs/fuse Message-ID: <201903042203.x24M3AKS099965@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903042203.x24M3AKS099965>