bikong0411/log4go

diff for test fail, syscall.Dup2() has slightly different signature

Opened this issue · 0 comments

diff -r 0f96d5ad1243 log4go_test.go                                             


--- a/log4go_test.go    Sat Aug 13 15:35:26 2011 -0700                          


+++ b/log4go_test.go    Thu Oct 06 14:25:26 2011 +0200                          


@@ -438,7 +438,7 @@                                                             


        if err != nil {                                                                                                                                                              
                panic(err)                                                                                                                                                           
        }                                                                                                                                                                            
-       if err := syscall.Dup2(sink.Fd(), syscall.Stdout); err != 0 {           


+       if _,err := syscall.Dup2(sink.Fd(), syscall.Stdout); err != 0 {         


                panic(os.Errno(err))                                                                                                                                                 
        }

Original issue reported on code.google.com by graham.a...@gmail.com on 6 Oct 2011 at 12:32