From ed2ade4e22dcf63a391927416caad412e29b3e59 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 14 May 2021 22:43:49 -0700 Subject: [PATCH] headless: Correct tests. --- headless/Compare.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headless/Compare.cpp b/headless/Compare.cpp index b80b1b2dcd..1b81867a67 100644 --- a/headless/Compare.cpp +++ b/headless/Compare.cpp @@ -209,7 +209,7 @@ std::string GetTestName(const Path &bootFilename) } bool CompareOutput(const Path &bootFilename, const std::string &output, bool verbose) { - Path expect_filename = bootFilename.WithReplacedExtension("prx", "expected"); + Path expect_filename = bootFilename.WithReplacedExtension(".prx", ".expected"); std::unique_ptr expect_loader(ConstructFileLoader(expect_filename)); if (expect_loader->Exists()) { @@ -271,7 +271,7 @@ bool CompareOutput(const Path &bootFilename, const std::string &output, bool ver printf("%s", output.c_str()); printf("============== expected output:\n"); std::string fullExpected; - if (File::ReadFileToString(true, Path(expect_filename), fullExpected)) + if (File::ReadFileToString(true, expect_filename, fullExpected)) printf("%s", fullExpected.c_str()); printf("===============================\n"); }