|
1
|
# |
|
2
|
# Tests using a repo path >512 chars. |
|
3
|
# |
|
4
|
# This test should pass on any platform. |
|
5
|
# |
|
6
|
|
|
7
|
if {$::tcl_platform(platform)!="unix"} { |
|
8
|
exit |
|
9
|
} |
|
10
|
|
|
11
|
# Fossil will write data on $HOME, running 'fossil new' here. |
|
12
|
# We need not to clutter the $HOME of the test caller. |
|
13
|
# |
|
14
|
set env(HOME) [pwd] |
|
15
|
|
|
16
|
# Create the repo |
|
17
|
# |
|
18
|
set x [string repeat x 240] |
|
19
|
set longpath [pwd]/$x/$x |
|
20
|
file mkdir $longpath |
|
21
|
|
|
22
|
test longpath-test.1 { |
|
23
|
![regexp CANTOPEN [fossil new $longpath/$x.fossil]] |
|
24
|
} |
|
25
|
|
|
26
|
catch {file delete $longpath/$x.fossil} |
|
27
|
catch {file delete $longpath} |
|
28
|
catch {file delete [file dirname $longpath]} |
|
29
|
|