Skip to content

Commit

Permalink
Fixed check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir-NoChill committed Oct 1, 2024
1 parent 73553dd commit fa5694f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tests/TestRunning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "Colors.h"
#include "config/Config.h"
#include "dtl/dtl.hpp"
#include "tests/TestResult.h"
#include "toolchain/CommandException.h"
#include "toolchain/ExecutionState.h"
#include <optional>
Expand Down Expand Up @@ -213,7 +214,7 @@ TestResult runTest(TestFile* test, const ToolChain& toolChain, const Config& cfg
}

// Check if we were able to create the output file
std::ifstream file(genErrorString);
std::ifstream file(genOutPath);
if (!file.is_open()) {
return TestResult(testPath, false, true, "Failed to create output file");
}
Expand Down Expand Up @@ -251,4 +252,4 @@ TestResult runTest(TestFile* test, const ToolChain& toolChain, const Config& cfg
return TestResult(testPath, !testDiff, testError, "");
}

} // End namespace tester
} // End namespace tester

0 comments on commit fa5694f

Please sign in to comment.