1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/demo/draw/getsource
msv 36cc26194c 0028673: getsourcefile Draw command return different output on Linux and Windows platforms
The method Draw_Interpretor::add() has been corrected so that the command getsourcefile returned the relative path starting with "src" without leading "/" on all platforms.
2017-05-05 11:27:43 +03:00

11 lines
336 B
Plaintext
Executable File

# test for command getsource
# check that path returned for command pload is as expected
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"