mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
Checked saves (used under folder roots and for script commands) had no test for a fill that fails or is canceled, for the copy of the old file going to the system's temporary folder when the folder refuses it, or for the path that writes in the system's temporary folder when the folder refuses the temporary file. Five tests cover them: - a failed fill and a canceled fill return their error, leave the file as it was and remove the temporary file - a refused rename in a folder that then takes no new file keeps the old copy in the system's temporary folder and removes it afterwards - a folder that takes no temporary file saves through the system's temporary folder, and a failed fill there leaves nothing behind - a compressed file with data after its JSON is refused one byte past its JSON cap when streamed, and one byte past its whole-file cap when unpacked whole The permission tests skip when running as root.