1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Make extra efforts to delete the over-size directory names created by

the win32longpath.test module.

FossilOrigin-Name: 3c8035ed3f023fb31f65f298fb9ce19d4fa7a5511bd90877b27969f5f0892472
This commit is contained in:
drh
2024-09-04 13:09:58 +00:00
parent c81ab76cd9
commit 3c72072a6f
3 changed files with 18 additions and 7 deletions

View File

@ -127,6 +127,17 @@ foreach tn {1a 1b 1c 1d 1e 1f} {
db3 close
}
# These over-length file and directory names are difficult to delete.
# The "file delete -force" might not work, depending on the TCL build
# being used. So first try to delete using the windows rmdir command.
#
set fd [open cleanup.bat w]
puts $fd "rmdir /q /s $longPath(1)"
close $fd
if {[catch {exec cleanup.bat} msg]} {
puts "Command \[cleanup.bat\] returns $msg"
}
file delete -force $fileName
file delete -force $longPath(3)
file delete -force $longPath(2)