Skip to content

Commit

Permalink
Sync changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Oct 4, 2023
1 parent 4cccf8a commit 2c10486
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kani-driver/src/concrete_playback/test_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ impl KaniSession {
}
}

// Renames are usually automic, so we won't corrupt the user's source file during a crash.
// Renames are usually automic, so we won't corrupt the user's source file during a
// crash; but first flush all updates to disk, which persist wouldn't take care of.
temp_file.as_file().sync_all()?;
temp_file.persist(source_path).expect("Could not rename file");
}

Expand Down

0 comments on commit 2c10486

Please sign in to comment.