1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/demo/draw/getsource

16 lines
498 B
Plaintext
Executable File

# test for command getsource
# check that path returned for command pload is as expected
set env(os_type) $tcl_platform(platform)
if { [string compare $env(os_type) "windows"] == 0 } {
set expected /src/Draw/Draw_PloadCommands.cxx
} else {
set expected /src/Draw/Draw_PloadCommands.cxx
}
set path [lindex [getsourcefile pload] 1]
if { [string compare $path $expected] } {
puts "Error: command 'getsourcefile pload' returned '$path' while expected '$expected'"
}
puts "TEST COMPLETED"