feat(nonlinear-static-newton-raphson): step 10 - prepared-analysis-flow-and-full-procedure
This commit is contained in:
@@ -368,6 +368,20 @@ TEST(LinearStaticCli, DefaultOutputUsesInputSiblingDerivedName) {
|
||||
EXPECT_FALSE(std::filesystem::exists(directory.Path() / "results.h5"));
|
||||
}
|
||||
|
||||
// NSNR-PROC-001: log lifecycle begins after leasing and before parse/map.
|
||||
TEST(FesaApplication, OpensDerivedLogBeforeInputMapping) {
|
||||
TempDirectory directory{"log-before-input"};
|
||||
const auto input = directory.Path() / "missing.inp";
|
||||
const auto log = directory.Path() / "missing_log.txt";
|
||||
|
||||
const auto result = RunApplication({input.string()});
|
||||
|
||||
EXPECT_EQ(result.exit_code, 3);
|
||||
ExpectDiagnosticFieldOrder(result.standard_error);
|
||||
ASSERT_TRUE(std::filesystem::exists(log));
|
||||
EXPECT_EQ(std::filesystem::file_size(log), 0U);
|
||||
}
|
||||
|
||||
TEST(LinearStaticCli, ReturnsEveryExactExitCodeAndOrderedDiagnostic) {
|
||||
TempDirectory directory{"exit-codes"};
|
||||
const auto valid_input = directory.Path() / "valid.inp";
|
||||
|
||||
Reference in New Issue
Block a user