This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: modify kill tests to support Darwin
SIGPWR is not supported on Darwin. This patch adds new kill_linux_test.go to use SIGPWR and kill_darwin_test.go that does not use SIGPWR. In addition SIGSTKFLT was removed from the tests. Signed-off-by: Salvador Fuentes <[email protected]>
- Loading branch information
Showing
3 changed files
with
74 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2018 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package docker | ||
|
||
import ( | ||
"syscall" | ||
|
||
. "github.com/onsi/ginkgo/extensions/table" | ||
) | ||
|
||
func withOSSignals(signalsMap map[syscall.Signal]bool) []TableEntry { | ||
return withGenericSignals(signalsMap) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2018 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package docker | ||
|
||
import ( | ||
"syscall" | ||
|
||
. "github.com/onsi/ginkgo/extensions/table" | ||
) | ||
|
||
func withOSSignals(signalsMap map[syscall.Signal]bool) []TableEntry { | ||
signalsMap[syscall.SIGPWR] = canBeTrapped | ||
return withGenericSignals(signalsMap) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters