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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/resources/post-image-to-verify.php

Issue 2532103003: Fix http/tests/cache random-order flakiness (Closed)
Patch Set: Created 4 years, 1 month 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 | « third_party/WebKit/LayoutTests/http/tests/cache/post-with-cached-subresources-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/cache/resources/post-image-to-verify.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/resources/post-image-to-verify.php b/third_party/WebKit/LayoutTests/http/tests/cache/resources/post-image-to-verify.php
index d3abe0d080709ce8cd46684376c93449aa3fd99b..2ddd8fcbe2c15db80d174e272b5c26e5ec3eefbe 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cache/resources/post-image-to-verify.php
+++ b/third_party/WebKit/LayoutTests/http/tests/cache/resources/post-image-to-verify.php
@@ -2,11 +2,12 @@
require_once '../../resources/portabilityLayer.php';
clearstatcache();
-if (file_exists(sys_get_temp_dir() . "/post.tmp")) {
+$tmpFilename = sys_get_temp_dir() . "/" . $_GET['filename'];
+if (file_exists($tmpFilename)) {
header('HTTP/1.1 404 Not Found');
exit();
} else {
- $tmpFile = fopen(sys_get_temp_dir() . "/post.tmp", 'w');
+ $tmpFile = fopen($tmpFilename, 'w');
fclose($tmpFile);
$filename = 'compass-no-cache.jpg';
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/cache/post-with-cached-subresources-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698