summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/plugin_tests.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/plugin_tests.cc b/webkit/tools/test_shell/plugin_tests.cc
index 81903ac..aed5dc5 100644
--- a/webkit/tools/test_shell/plugin_tests.cc
+++ b/webkit/tools/test_shell/plugin_tests.cc
@@ -54,6 +54,9 @@ class PluginTest : public TestShellTest {
}
void CopyTestPlugin() {
+ // On Linux, we need to delete before copying because if the plugin is a
+ // hard link, the copy will fail.
+ DeleteTestPlugin();
ASSERT_TRUE(file_util::CopyDirectory(plugin_src_, plugin_file_path_, true));
}