Posted to tcl by emiliano at Sat Sep 13 19:03:33 GMT 2008view raw

  1. ============================SNIP
  2. case.test
  3. clock.test
  4.  
  5. ==== clock-3.4 clock format tests FAILED
  6. ==== Contents of test case:
  7.  
  8. # tzset() under Borland doesn't seem to set up tzname[] for gmt
  9. # timezone. tzset() under MSVC has the following weird observed
  10. # behavior:
  11. # First time we call "clock format [clock seconds] -format %Z -gmt 1"
  12. # we get "GMT", but on all subsequent calls we get the current time
  13. # zone string, even though env(TZ) is GMT and the variable _timezone
  14. # is 0.
  15. set x {}
  16. append x [clock format 863800000 -format %Z -gmt 1]
  17. append x [clock format 863800000 -format %Z -gmt 1]
  18.  
  19. ---- Result was:
  20. ARTART
  21. ---- Result should have been (regexp matching):
  22. GMTGMT|UTCUTC
  23. ==== clock-3.4 FAILED
  24.  
  25. cmdAH.test
  26. cmdIL.test
  27. ====================== SNIP