http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583
--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2012-03-14 19:27:09 UTC --- (In reply to comment #0) > --- FAIL: log.TestAll (0.02 seconds) > log_test.go:66: log output should match > "^.*/[A-Za-z0-9_\\-]+\\.go:(54|56): > hello 23 world$" is ":0: hello 23 world" > log_test.go:66: log output should match "^[A-Za-z0-9_\\-]+\\.go:(54|56): > hello 23 world$" is ":0: hello 23 world" > log_test.go:66: log output should match "^[A-Za-z0-9_\\-]+\\.go:(54|56): > hello 23 world$" is ":0: hello 23 world" > log_test.go:66: log output should match > "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] > [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] > .*/[A-Za-z0-9_\\-]+\\.go:(54|56): hello 23 world$" is "XXX2012/03/12 > 20:22:43.453671 :0: hello 23 world" > log_test.go:66: log output should match > "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] > [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] > [A-Za-z0-9_\\-]+\\.go:(54|56): hello 23 world$" is "XXX2012/03/12 > 20:22:43.455184 :0: hello 23 world" > FAIL > FAIL: log I also see these failures on alpha. I have debugged this issue a bit: these failures happen only when useFormat is false in function testPrint, at log_test.go:48. It looks to me that Println doesn't handle long and short file names correctly. Equivalent Printf function works without problems, outputting correct expected strings.