⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 winfcmd.test

📁 tcl是工具命令语言
💻 TEST
📖 第 1 页 / 共 3 页
字号:
    createfile tf1    list [catch {testfile mv tf1 td1} msg] $msg} {1 EISDIR}test winFCmd-1.36 {TclpRenameFile: src and dst not dir} {pcOnly} {    createfile tf1 tf1    createfile tf2 tf2    testfile mv tf1 tf2    contents tf2} {tf1}test winFCmd-1.37 {TclpRenameFile: need to restore temp file} {pcOnly} {    # Can't figure out how to cause this.     # Need a file that can't be copied.} {}test winFCmd-2.1 {TclpCopyFile: errno: EACCES} {pcOnly cdrom} {    cleanup    list [catch {testfile cp $cdfile $cdrom/dummy~~.fil} msg] $msg} {1 EACCES}test winFCmd-2.2 {TclpCopyFile: errno: EISDIR} {pcOnly} {    cleanup    file mkdir td1    list [catch {testfile cp td1 tf1} msg] $msg} {1 EISDIR}test winFCmd-2.3 {TclpCopyFile: errno: EISDIR} {pcOnly} {    cleanup    createfile tf1    file mkdir td1    list [catch {testfile cp tf1 td1} msg] $msg} {1 EISDIR}test winFCmd-2.4 {TclpCopyFile: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile cp tf1 tf2} msg] $msg} {1 ENOENT}test winFCmd-2.5 {TclpCopyFile: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile cp "" tf2} msg] $msg} {1 ENOENT}test winFCmd-2.6 {TclpCopyFile: errno: ENOENT} {pcOnly} {    cleanup    createfile tf1    list [catch {testfile cp tf1 ""} msg] $msg} {1 ENOENT}test winFCmd-2.7 {TclpCopyFile: errno: EACCES} {pcOnly 95} {    cleanup    createfile tf1    set fd [open tf2 w]    set msg [list [catch {testfile cp tf1 tf2} msg] $msg]    close $fd    set msg} {1 EACCES}test winFCmd-2.8 {TclpCopyFile: errno: EACCES} {pcOnly win2000orXP} {    cleanup    list [catch {testfile cp nul tf1} msg] $msg} {1 EINVAL}test winFCmd-2.8.1 {TclpCopyFile: errno: EACCES} {pcOnly nt winOlderThan2000} {    cleanup    list [catch {testfile cp nul tf1} msg] $msg} {1 EACCES}test winFCmd-2.9 {TclpCopyFile: errno: ENOENT} {pcOnly 95} {    cleanup    list [catch {testfile cp nul tf1} msg] $msg} {1 ENOENT}test winFCmd-2.10 {TclpCopyFile: CopyFile succeeds} {pcOnly} {    cleanup    createfile tf1 tf1    testfile cp tf1 tf2    list [contents tf1] [contents tf2]} {tf1 tf1}test winFCmd-2.11 {TclpCopyFile: CopyFile succeeds} {pcOnly} {    cleanup    createfile tf1 tf1    createfile tf2 tf2    testfile cp tf1 tf2    list [contents tf1] [contents tf2]} {tf1 tf1}test winFCmd-2.12 {TclpCopyFile: CopyFile succeeds} {pcOnly} {    cleanup    createfile tf1 tf1    testchmod 000 tf1    testfile cp tf1 tf2    list [contents tf2] [file writable tf2]} {tf1 0}test winFCmd-2.13 {TclpCopyFile: CopyFile fails} {pcOnly} {    cleanup    createfile tf1    file mkdir td1    list [catch {testfile cp tf1 td1} msg] $msg} {1 EISDIR} test winFCmd-2.14 {TclpCopyFile: errno == EACCES} {pcOnly} {    cleanup    file mkdir td1    list [catch {testfile cp td1 tf1} msg] $msg} {1 EISDIR}test winFCmd-2.15 {TclpCopyFile: src is directory} {pcOnly} {    cleanup    file mkdir td1    list [catch {testfile cp td1 tf1} msg] $msg} {1 EISDIR}test winFCmd-2.16 {TclpCopyFile: dst is directory} {pcOnly} {    cleanup    createfile tf1    file mkdir td1    list [catch {testfile cp tf1 td1} msg] $msg} {1 EISDIR}test winFCmd-2.17 {TclpCopyFile: dst is readonly} {pcOnly} {    cleanup    createfile tf1 tf1    createfile tf2 tf2    testchmod 000 tf2    testfile cp tf1 tf2    list [file writable tf2] [contents tf2]} {1 tf1}test winFCmd-2.18 {TclpCopyFile: still can't copy onto dst} {pcOnly 95} {    cleanup    createfile tf1    createfile tf2    testchmod 000 tf2    set fd [open tf2]    set msg [list [catch {testfile cp tf1 tf2} msg] $msg]    close $fd    set msg "$msg [file writable tf2]"} {1 EACCES 0}    test winFCmd-3.1 {TclpDeleteFile: errno: EACCES} {pcOnly cdrom} {    list [catch {testfile rm $cdfile $cdrom/dummy~~.fil} msg] $msg} {1 EACCES}test winFCmd-3.2 {TclpDeleteFile: errno: EISDIR} {pcOnly} {    cleanup    file mkdir td1    list [catch {testfile rm td1} msg] $msg} {1 EISDIR} test winFCmd-3.3 {TclpDeleteFile: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile rm tf1} msg] $msg} {1 ENOENT}test winFCmd-3.4 {TclpDeleteFile: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile rm ""} msg] $msg} {1 ENOENT}test winFCmd-3.5 {TclpDeleteFile: errno: EACCES} {pcOnly} {    cleanup    set fd [open tf1 w]    set msg [list [catch {testfile rm tf1} msg] $msg]    close $fd    set msg} {1 EACCES}test winFCmd-3.6 {TclpDeleteFile: errno: EACCES} {pcOnly} {    cleanup    list [catch {testfile rm nul} msg] $msg} {1 EACCES}test winFCmd-3.7 {TclpDeleteFile: DeleteFile succeeds} {pcOnly} {    cleanup    createfile tf1    testfile rm tf1    file exists tf1} {0}test winFCmd-3.8 {TclpDeleteFile: DeleteFile fails} {pcOnly} {    cleanup    file mkdir td1    list [catch {testfile rm td1} msg] $msg} {1 EISDIR}test winFCmd-3.9 {TclpDeleteFile: errno == EACCES} {pcOnly} {    cleanup    set fd [open tf1 w]    set msg [list [catch {testfile rm tf1} msg] $msg]    close $fd    set msg} {1 EACCES}test winFCmd-3.10 {TclpDeleteFile: path is readonly} {pcOnly} {    cleanup    createfile tf1    testchmod 000 tf1    testfile rm tf1    file exists tf1} {0}test winFCmd-3.11 {TclpDeleteFile: still can't remove path} {pcOnly} {    cleanup    set fd [open tf1 w]    testchmod 000 tf1    set msg [list [catch {testfile rm tf1} msg] $msg]    close $fd    set msg} {1 EACCES}test winFCmd-4.1 {TclpCreateDirectory: errno: EACCES} {pcOnly nt cdrom} {    list [catch {testfile mkdir $cdrom/dummy~~.dir} msg] $msg} {1 EACCES}test winFCmd-4.2 {TclpCreateDirectory: errno: EACCES} {pcOnly 95 cdrom} {    list [catch {testfile mkdir $cdrom/dummy~~.dir} msg] $msg} {1 ENOSPC}test winFCmd-4.3 {TclpCreateDirectory: errno: EEXIST} {pcOnly} {    cleanup    file mkdir td1    list [catch {testfile mkdir td1} msg] $msg} {1 EEXIST}test winFCmd-4.4 {TclpCreateDirectory: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile mkdir td1/td2} msg] $msg} {1 ENOENT}test winFCmd-4.5 {TclpCreateDirectory: CreateDirectory succeeds} {pcOnly} {    cleanup    testfile mkdir td1    file type td1} {directory}test winFCmd-5.1 {TclpCopyDirectory: calls TraverseWinTree} {pcOnly} {    cleanup    file mkdir td1    testfile cpdir td1 td2    list [file type td1] [file type td2]} {directory directory}test winFCmd-6.1 {TclpRemoveDirectory: errno: EACCES} {pcOnly} {    cleanup    file mkdir td1    testchmod 000 td1    testfile rmdir td1    file exists td1} {0}test winFCmd-6.2 {TclpRemoveDirectory: errno: EEXIST} {pcOnly} {    cleanup    file mkdir td1/td2    list [catch {testfile rmdir td1} msg] [file tail $msg]} {1 {td1 EEXIST}}test winFCmd-6.3 {TclpRemoveDirectory: errno: EACCES} {pcOnly} {    # can't test this w/o removing everything on your hard disk first!    # testfile rmdir /} {}test winFCmd-6.4 {TclpRemoveDirectory: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile rmdir td1} msg] [file tail $msg]} {1 {td1 ENOENT}}test winFCmd-6.5 {TclpRemoveDirectory: errno: ENOENT} {pcOnly} {    cleanup    list [catch {testfile rmdir ""} msg] $msg} {1 ENOENT}test winFCmd-6.6 {TclpRemoveDirectory: errno: ENOTDIR} {pcOnly} {    cleanup    createfile tf1    list [catch {testfile rmdir tf1} msg] [file tail $msg]} {1 {tf1 ENOTDIR}}test winFCmd-6.7 {TclpRemoveDirectory: RemoveDirectory succeeds} {pcOnly} {    cleanup    file mkdir td1    testfile rmdir td1    file exists td1} {0}test winFCmd-6.8 {TclpRemoveDirectory: RemoveDirectory fails} {pcOnly} {    cleanup    createfile tf1    list [catch {testfile rmdir tf1} msg] [file tail $msg]} {1 {tf1 ENOTDIR}}test winFCmd-6.9 {TclpRemoveDirectory: errno == EACCES} {pcOnly} {    cleanup    file mkdir td1    testchmod 000 td1    testfile rmdir td1    file exists td1} {0}test winFCmd-6.10 {TclpRemoveDirectory: attr == -1} {pcOnly 95} {    cleanup    list [catch {testfile rmdir nul} msg] $msg} {1 {nul EACCES}}test winFCmd-6.11 {TclpRemoveDirectory: attr == -1} {pcOnly nt} {    cleanup    list [catch {testfile rmdir /} msg] $msg} {1 {/ EACCES}}test winFCmd-6.12 {TclpRemoveDirectory: errno == EACCES} {pcOnly 95} {    cleanup    createfile tf1    list [catch {testfile rmdir tf1} msg] $msg} {1 {tf1 ENOTDIR}}test winFCmd-6.13 {TclpRemoveDirectory: write-protected} {pcOnly} {    cleanup    file mkdir td1    testchmod 000 td1    testfile rmdir td1    file exists td1} {0}test winFCmd-6.14 {TclpRemoveDirectory: check if empty dir} {pcOnly 95} {    cleanup    file mkdir td1/td2    list [catch {testfile rmdir td1} msg] $msg} {1 {td1 EEXIST}}test winFCmd-6.15 {TclpRemoveDirectory: !recursive} {pcOnly} {    cleanup    file mkdir td1/td2    list [catch {testfile rmdir td1} msg] [file tail $msg]} {1 {td1 EEXIST}}test winFCmd-6.16 {TclpRemoveDirectory: recursive, but errno != EEXIST} {pcOnly} {    cleanup    createfile tf1    list [catch {testfile rmdir -force tf1} msg] $msg} {1 {tf1 ENOTDIR}}test winFCmd-6.17 {TclpRemoveDirectory: calls TraverseWinTree} {pcOnly} {    cleanup    file mkdir td1/td2    testfile rmdir -force td1    file exists td1} {0}test winFCmd-7.1 {TraverseWinTree: targetPtr == NULL} {pcOnly} {    cleanup    file mkdir td1/td2/td3    testfile rmdir -force td1    file exists td1} {0}test winFCmd-7.2 {TraverseWinTree: targetPtr != NULL} {pcOnly} {    cleanup    file mkdir td1/td2/td3    testfile cpdir td1 td2    list [file exists td1] [file exists td2]} {1 1}test winFCmd-7.3 {TraverseWinTree: sourceAttr == -1} {pcOnly} {    cleanup    list [catch {testfile cpdir td1 td2} msg] $msg} {1 {td1 ENOENT}}test winFCmd-7.4 {TraverseWinTree: source isn't directory} {pcOnly} {    cleanup    file mkdir td1    createfile td1/tf1 tf1    testfile cpdir td1 td2    contents td2/tf1} {tf1}test winFCmd-7.5 {TraverseWinTree: call TraversalCopy: DOTREE_F} {pcOnly} {    cleanup    file mkdir td1    createfile td1/tf1 tf1    testfile cpdir td1 td2    contents td2/tf1} {tf1}test winFCmd-7.6 {TraverseWinTree: call TraversalDelete: DOTREE_F} {pcOnly} {    cleanup    file mkdir td1    createfile td1/tf1 tf1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -