LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // +build linux | 5 // +build linux |
6 | 6 |
7 package syscall_test | 7 package syscall_test |
8 | 8 |
9 import ( | 9 import ( |
10 "bytes" | 10 "bytes" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 t.Fatalf("ParseSocketControlMessage: %v", err) | 104 t.Fatalf("ParseSocketControlMessage: %v", err) |
105 } | 105 } |
106 newUcred, err := syscall.ParseUnixCredentials(&scm[0]) | 106 newUcred, err := syscall.ParseUnixCredentials(&scm[0]) |
107 if err != nil { | 107 if err != nil { |
108 t.Fatalf("ParseUnixCredentials: %v", err) | 108 t.Fatalf("ParseUnixCredentials: %v", err) |
109 } | 109 } |
110 if *newUcred != ucred { | 110 if *newUcred != ucred { |
111 t.Fatalf("ParseUnixCredentials = %+v, want %+v", newUcred, ucred
) | 111 t.Fatalf("ParseUnixCredentials = %+v, want %+v", newUcred, ucred
) |
112 } | 112 } |
113 } | 113 } |
LEFT | RIGHT |