Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
913 B

  1. @echo off
  2. rem Mini-stress test of the trace control start/stop functions
  3. rem to ensure that the synchronizations are working (with crashing/leaks).
  4. rem NOTE: tracelog.exe must be in the same directory of test for this to work.
  5. setlocal
  6. set test=%1
  7. set loops=2000
  8. set term=1
  9. if (%test%) == (t1) goto t1
  10. if (%test%) == (t2) goto t2
  11. if (%test%) == (t3) goto t3
  12. start ctrltest t1
  13. start ctrltest t2
  14. start ctrltest t3
  15. goto LAST
  16. :t1
  17. for /L %%x in (0,1,%loops%) do echo *********** %%x *********** & tracelog -start & tracelog -x
  18. if (%term%) == (1) exit
  19. goto LAST
  20. :t2
  21. for /L %%x in (0,1,%loops%) do echo *********** %%x *********** tracelog -start test -f c:\log.log & tracelog -x
  22. if (%term%) == (1) exit
  23. goto LAST
  24. :t3
  25. for /L %%x in (0,1,%loops%) do echo *********** %%x *********** & tracelog -start test1 -f c:\log.log & tracelog -x
  26. if (%term%) == (1) exit
  27. goto LAST
  28. :LAST