Hi team,

Here is the patch to skip this test.

-- 
Shengjing Zhu
diff -Nru 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog
--- golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog    
2018-04-30 23:23:20.000000000 +0800
+++ golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog    
2018-08-03 15:17:22.000000000 +0800
@@ -1,3 +1,10 @@
+golang-github-kardianos-osext (0.0~git20170510.0.ae77be6-6) unstable; 
urgency=medium
+
+  * Team upload.
+  * Skip TestExecutableDelete(false test).
+
+ -- Shengjing Zhu <i...@zhsj.me>  Fri, 03 Aug 2018 15:17:22 +0800
+
 golang-github-kardianos-osext (0.0~git20170510.0.ae77be6-5) unstable; 
urgency=medium
 
   [ Alexandre Viau ]
diff -Nru 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch
 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch
--- 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch
 1970-01-01 08:00:00.000000000 +0800
+++ 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch
 2018-08-03 15:14:30.000000000 +0800
@@ -0,0 +1,26 @@
+Description: Skip TestExecutableDelete
+Author: Shengjing Zhu <i...@zhsj.me>
+
+Reading this test logic, it first reads its self executable path, then
+start it self, then remove original file. It of cause prints the
+"/tmp/go-buildnnn/b001/osext.test (deleted)".
+                                  ^^^^^^^^^
+In go >= 1.8, this package's Executable function just fallback
+to go system os package. I think there's no need to test it.
+
+Origin: other
+Bug: https://github.com/kardianos/osext/issues/21
+Bug-Debian: https://bugs.debian.org/902467
+Forwarded: no
+Last-Update: 2018-08-03
+
+--- golang-github-kardianos-osext-0.0~git20170510.0.ae77be6.orig/osext_test.go
++++ golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/osext_test.go
+@@ -80,6 +80,7 @@ func TestExecutableMatch(t *testing.T) {
+ }
+ 
+ func TestExecutableDelete(t *testing.T) {
++      t.Skip()
+       if runtime.GOOS != "linux" {
+               t.Skip()
+       }
diff -Nru 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series
--- 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series   
    1970-01-01 08:00:00.000000000 +0800
+++ 
golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series   
    2018-08-03 15:15:49.000000000 +0800
@@ -0,0 +1 @@
+0001-skip-testexecutabledelete.patch

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to