mirror of
https://github.com/containers/skopeo.git
synced 2025-09-11 11:39:44 +00:00
integration: add _test suffix to files
Some files in integration did not have _test, resulting in lots of complains when running golangci-lint with --tests=false. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
committed by
Miloslav Trmač
parent
990ac07ff5
commit
25481e1a88
14
integration/procutils_linux_test.go
Normal file
14
integration/procutils_linux_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// cmdLifecycleToParentIfPossible is a thin wrapper around prctl(PR_SET_PDEATHSIG)
|
||||
// on Linux.
|
||||
func cmdLifecycleToParentIfPossible(c *exec.Cmd) {
|
||||
c.SysProcAttr = &syscall.SysProcAttr{
|
||||
Pdeathsig: syscall.SIGTERM,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user