0027691: Remove dchrono from all test cases and move its to perf group
[occt.git] / tests / bugs / fclasses / bug23852
1 puts "============"
2 puts "OCC23852"
3 puts "============"
4 puts ""
5 #######################################################################
6 # OSD_Path interprets unc paths incorrectly
7 #######################################################################
8
9 pload DCAF
10
11 set BugNumber OCC23852
12
13 if { [checkplatform -windows] } {
14
15    # Windows, #1
16    set OSD_Path "\\\\Server\\Shared\\Folder\\File.Extension"
17    puts "OSD_Path = ${OSD_Path}"
18
19    set Log [OSDPath ${OSD_Path}]
20    #
21    if { [regexp "Trek +: +\\|\\|Server\\|Shared\\|Folder" ${Log}] != 1 } {
22       puts "${BugNumber}, Trek, #1: Error"
23    }
24    #
25    if { [regexp "Name +: +File" ${Log}] != 1 } {
26       puts "${BugNumber}, Name, #1: Error"
27    }
28    #
29    if { [regexp "Extension +: +.Extension" ${Log}] != 1 } {
30       puts "${BugNumber}, Extension, #1: Error"
31    }
32
33    # Windows, #2
34    set OSD_Path "//Server/Shared/Folder/File.Extension"
35    puts "OSD_Path = ${OSD_Path}"
36
37    set Log [OSDPath ${OSD_Path}]
38    #
39    if { [regexp "Trek +: +||Server|Shared|Folder" ${Log}] != 1 } {
40       puts "${BugNumber}, Trek, #2: Error"
41    }
42    #
43    if { [regexp "Name +: +File" ${Log}] != 1 } {
44       puts "${BugNumber}, Name, #2: Error"
45    }
46    #
47    if { [regexp "Extension +: +.Extension" ${Log}] != 1 } {
48       puts "${BugNumber}, Extension, #2: Error"
49    }
50
51 } else {
52    # Linux
53    set OSD_Path "//Server/Shared/Folder/File.Extension"
54    puts "OSD_Path = ${OSD_Path}"
55
56    set Log [OSDPath ${OSD_Path}]
57    #
58    if { [regexp "Trek +: +||Server|Shared|Folder" ${Log}] != 1 } {
59       puts "${BugNumber}, Trek: Error"
60    }
61    #
62    if { [regexp "Name +: +File" ${Log}] != 1 } {
63       puts "${BugNumber}, Name: Error"
64    }
65    #
66    if { [regexp "Extension +: +.Extension" ${Log}] != 1 } {
67       puts "${BugNumber}, Extension: Error"
68    }
69 }