File: bug23152

package info (click to toggle)
oce 0.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 297,992 kB
  • ctags: 203,291
  • sloc: cpp: 1,176,369; ansic: 67,206; sh: 11,647; tcl: 6,890; cs: 5,221; python: 2,867; java: 1,522; makefile: 338; xml: 292; perl: 37
file content (53 lines) | stat: -rw-r--r-- 988 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
puts "==========="
puts "OCC23152"
puts "==========="
######################################################
# Possibility to have echo of DRAW commands in log file
######################################################

set BugNumber OCC23152

dchrono t stop
dchrono t start
dchrono t stop

dlog reset
dlog on
dchrono t show
set log_on [dlog get]

dlog reset
dlog off
dchrono t show
set log_off [dlog get]

puts "log_on = ${log_on}"
puts "log_off = ${log_off}"

set llength_log_on  [llength ${log_on}]
set llength_log_off [llength ${log_off}]

puts "llength log_on= [llength ${log_on}]"
puts "llength log_off= [llength ${log_off}]"

set status 0
if { ${llength_log_on} > 0 } {
   puts "dlog on work OK"
} else {
   puts "dlog on work Faulty"
   set status 1
}
if { ${llength_log_off} == 0 } {
   puts "dlog off work OK"
} else {
   puts "dlog off work Faulty"
   set status 1
}

# Resume
puts ""
if { ${status} == 0 } {
   puts "OK ${BugNumber}"
} else {
   puts "Faulty ${BugNumber}"
}