File: bug23152

package info (click to toggle)
oce 0.15-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 302,472 kB
  • ctags: 210,903
  • sloc: cpp: 1,165,052; ansic: 75,256; sh: 11,901; tcl: 4,488; python: 2,867; makefile: 337; perl: 37; csh: 12
file content (53 lines) | stat: -rwxr-xr-x 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}"
}