1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/fclasses/bug27849
razmyslovich f9ac4dc9ab 0027849: ResourceManager path computations fail for the folders containing dots
Treatment of paths in Resource_Manager is corrected to handle properly paths with dots inside.
Extraction of extension from path in DOS mode when working on Linux is corrected in OSD_Path.
Test case added.
2016-11-23 13:01:46 +03:00

33 lines
655 B
Plaintext

puts "Test loading of resources from different paths"
puts "0027849: ResourceManager path computations fail for the folders containing dots"
pload QAcommands
set paths {
"path"
"path.with.dots"
"path with spaces"
"nested/dirs/path with spaces"
}
# key word to be saved in resource file and then checked
set keyw ok
foreach p $paths {
set path [file join $imagedir $p]
file mkdir $path
set fd [open $path/TestResource w]
puts $fd "test.resource : $keyw"
close $fd
dsetenv CSF_TestResourceDefaults $path
if { [OCC27849 TestResource test.resource] != "$keyw" } {
puts "Error: cannot read resource file in $path"
}
}