IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2020, 1:54:47 PM (6 years ago)
Author:
tdeboer
Message:

revert to working Ohana build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/test/if.sh

    r41160 r41340  
    320320 end
    321321end
    322 
    323 # check memleaks
    324 macro memtest1
    325 
    326  local a b i N
    327 
    328  $i = 0
    329  $a = 1
    330 
    331  memory check
    332  output /dev/null
    333  for i 0 1000
    334    if ($a == 1)
    335     echo "run"   
    336    end
    337  end   
    338  output stdout
    339  memory check
    340 end
    341 
    342 # check memleaks
    343 macro memtest2
    344 
    345  local a b i N
    346 
    347  $i = 0
    348  $a = 1
    349  $b = 2
    350 
    351  memory check
    352  output /dev/null
    353  for i 0 1000
    354    if (($a == 1) && ($b == 2))
    355     echo "run"   
    356    end
    357  end   
    358  output stdout
    359  memory check
    360 end
    361 
    362 # memory test using continue
    363 macro memtest3
    364 
    365  local a b i N
    366 
    367  $i = 0
    368  $a = 1
    369  $b = 2
    370 
    371  memory check
    372  output /dev/null
    373  for i 0 1000
    374    if (($a == 1) && ($b == 2))
    375     continue
    376     echo "run"   
    377    end
    378  end   
    379  output stdout
    380  memory check
    381 end
    382 
    383 # memory test using continue
    384 macro memtest4
    385 
    386  local a b i N bool
    387 
    388 
    389  $i = 0
    390  $a = 1
    391  $b = 2
    392  $bool = 0
    393 
    394  memory check
    395  output /dev/null
    396  for i 0 1000
    397    $bool = (($a == 1) && ($b == 2))
    398  end   
    399  output stdout
    400  memory check
    401 end
Note: See TracChangeset for help on using the changeset viewer.