Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: net/disk_cache/disk_cache_perftest.cc

Issue 2622013002: Simple Cache Perftests: properly restore FD limit. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_perftest.cc
diff --git a/net/disk_cache/disk_cache_perftest.cc b/net/disk_cache/disk_cache_perftest.cc
index b4ad47dc6188116099b6a6512563884a3547adb5..eeef3b71d7363016b6e582d05b0e544cb22c6607 100644
--- a/net/disk_cache/disk_cache_perftest.cc
+++ b/net/disk_cache/disk_cache_perftest.cc
@@ -62,7 +62,7 @@ class DiskCachePerfTest : public DiskCacheTestWithCache {
~DiskCachePerfTest() override {
if (saved_fd_limit_ < kFdLimitForCacheTests)
- MaybeSetFdLimit(kFdLimitForCacheTests);
+ MaybeSetFdLimit(saved_fd_limit_);
}
protected:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698