Changeset 41340 for trunk/Ohana/src/opihi/cmd.basic/test/if.sh
- Timestamp:
- Apr 16, 2020, 1:54:47 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/test/if.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/test/if.sh
r41160 r41340 320 320 end 321 321 end 322 323 # check memleaks324 macro memtest1325 326 local a b i N327 328 $i = 0329 $a = 1330 331 memory check332 output /dev/null333 for i 0 1000334 if ($a == 1)335 echo "run"336 end337 end338 output stdout339 memory check340 end341 342 # check memleaks343 macro memtest2344 345 local a b i N346 347 $i = 0348 $a = 1349 $b = 2350 351 memory check352 output /dev/null353 for i 0 1000354 if (($a == 1) && ($b == 2))355 echo "run"356 end357 end358 output stdout359 memory check360 end361 362 # memory test using continue363 macro memtest3364 365 local a b i N366 367 $i = 0368 $a = 1369 $b = 2370 371 memory check372 output /dev/null373 for i 0 1000374 if (($a == 1) && ($b == 2))375 continue376 echo "run"377 end378 end379 output stdout380 memory check381 end382 383 # memory test using continue384 macro memtest4385 386 local a b i N bool387 388 389 $i = 0390 $a = 1391 $b = 2392 $bool = 0393 394 memory check395 output /dev/null396 for i 0 1000397 $bool = (($a == 1) && ($b == 2))398 end399 output stdout400 memory check401 end
Note:
See TracChangeset
for help on using the changeset viewer.
