summaryrefslogtreecommitdiffstats
path: root/tests/zipfs.test
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-09-29 17:17:11 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-09-29 17:17:11 (GMT)
commit99e1b20c806fb795368afb3512e472bd93931313 (patch)
treeb7f23f5ed0a7074fc9e1496cf38e5e89ad462b15 /tests/zipfs.test
parent197397e5404aedf522c6f46f3a5f6dbc5086f65f (diff)
downloadtcl-99e1b20c806fb795368afb3512e472bd93931313.zip
tcl-99e1b20c806fb795368afb3512e472bd93931313.tar.gz
tcl-99e1b20c806fb795368afb3512e472bd93931313.tar.bz2
Add test for crash
Diffstat (limited to 'tests/zipfs.test')
-rw-r--r--tests/zipfs.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/zipfs.test b/tests/zipfs.test
index 64ce1eb..583a4d8 100644
--- a/tests/zipfs.test
+++ b/tests/zipfs.test
@@ -1509,6 +1509,19 @@ namespace eval test_ns_zipfs {
list [catch {read $fd} message] [close $fd] $message
close $fd
} -result {file size error (may be zip64)} -returnCodes error
+
+ test bug-8259d74a64 "Crash exiting with open files" -setup {
+ set path [zippath test.zip]
+ set script "zipfs mount $path /\n"
+ append script {open [zipfs root]test} \n
+ append script "exit\n"
+ } -body {
+ set fd [open |[info nameofexecutable] r+]
+ puts $fd $script
+ flush $fd
+ read $fd
+ close $fd
+ } -result ""
}