[pkg-go] Bug#902467: golang-github-kardianos-osext: FTBFS in buster/sid (failing tests)

Shengjing Zhu i at zhsj.me
Thu Aug 2 15:49:53 BST 2018


Hi Go team,

On Tue, Jun 26, 2018 at 10:52:52PM +0000, Santiago Vila wrote:
> === RUN   TestExecutableDelete
> --- FAIL: TestExecutableDelete (0.00s)
> 	osext_test.go:135: Child returned "/tmp/go-build962600465/b001/osext.test (deleted)", not the same file as "/tmp/go-build962600465/b001/osext.test"
> FAIL
> FAIL	github.com/kardianos/osext	0.004s
>

I think this test doesn't make any sense, we should just skip this test.

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)".
                                  ^^^^^^^^^

Besides in go >= 1.8, this package's Executable function just fallback
to go system os package.

-- 
Best regards,
Shengjing Zhu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20180802/a5f210dc/attachment.sig>


More information about the Pkg-go-maintainers mailing list