diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-09-29 17:17:11 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-09-29 17:17:11 (GMT) |
commit | 99e1b20c806fb795368afb3512e472bd93931313 (patch) | |
tree | b7f23f5ed0a7074fc9e1496cf38e5e89ad462b15 /tests/zipfs.test | |
parent | 197397e5404aedf522c6f46f3a5f6dbc5086f65f (diff) | |
download | tcl-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.test | 13 |
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 "" } |