1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! /usr/bin/env tclsh
set haveMk4vfs 0
catch {
package require vfs::mk4
set haveMk4vfs 1
}
if {!$haveMk4vfs} {
# This test only applies to kits that include Mk4vfs
exit 0
}
set TMPFILE $::env(TMPFILE)
set ::fcopy_complete 0
proc fcopy_complete {args} {
set ::fcopy_complete 1
}
vfs::mk4::Mount $TMPFILE /TEST
set fd [open /TEST/cross.png]
fconfigure $fd -translation binary
set out [open /dev/null w]
fcopy $fd $out -command fcopy_complete
after 3000
update
|
>
<
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! /usr/bin/env tclsh
set haveMk4vfs 0
catch {
package require vfs::mk4
vfs::mk4::Mount $TMPFILE /TEST
set haveMk4vfs 1
}
if {!$haveMk4vfs} {
# This test only applies to kits that include Mk4vfs
exit 0
}
set TMPFILE $::env(TMPFILE)
set ::fcopy_complete 0
proc fcopy_complete {args} {
set ::fcopy_complete 1
}
set fd [open /TEST/cross.png]
fconfigure $fd -translation binary
set out [open /dev/null w]
fcopy $fd $out -command fcopy_complete
after 3000
update
|