Skip to content

Truly independent web browser

test-web: Write the HTTP test server's log to the results directory

Shannon Booth560b74311a9c
diff --git a/Tests/LibWeb/test-web/Fixture.cpp b/Tests/LibWeb/test-web/Fixture.cpp
index d1f23e0b1b9..704bb51ee49 100644
--- a/Tests/LibWeb/test-web/Fixture.cpp
+++ b/Tests/LibWeb/test-web/Fixture.cpp
@@ -64,8 +64,7 @@ ErrorOr<void> HttpEchoServerFixture::setup(WebView::WebContentOptions& web_conte
auto const arguments = Vector { script_path.string(), "--directory", Application::the().test_root_path, "--ca-cert-output", ca_cert_path, "--downloads-directory", downloads_directory, "--exit-when-stdin-closes" };
- // FIXME: Pick a more reasonable log path that is more observable
- auto const log_path = LexicalPath::join(Core::StandardPaths::tempfile_directory(), "http-test-server.log"sv).string();
+ auto const log_path = LexicalPath::join(Application::the().results_directory, "http-test-server.log"sv).string();
auto stdin_fds = TRY(Core::System::pipe2(O_CLOEXEC, Core::System::PipeReadEnd::ReadExternally));
auto stdout_fds = TRY(Core::System::pipe2(O_CLOEXEC));