Skip to content

Commit

Permalink
pkg/failpoint: add FreeBSD link and update pkg doc
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit cbebeb9)
Signed-off-by: Qiutong Song <songqt01@gmail.com>
  • Loading branch information
fuweid authored and qiutongs committed Sep 30, 2022
1 parent b0ce296 commit d89a8d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/failpoint/fail.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
limitations under the License.
*/

// Package failpoint provides the code point in the path, which can be controlled
// by user's variable.
//
// Inspired by FreeBSD fail(9): https://freebsd.org/cgi/man.cgi?query=fail.
package failpoint

import (
Expand Down Expand Up @@ -80,7 +84,7 @@ func (t Type) String() string {
// be evaluated. If you want the error injected code should fire in second
// call, you can specify "1*off->1*error(oops)".
//
// Based on fail(9) freebsd: https://www.freebsd.org/cgi/man.cgi?query=fail&sektion=9&apropos=0&manpath=FreeBSD%2B10.0-RELEASE
// Inspired by FreeBSD fail(9): https://freebsd.org/cgi/man.cgi?query=fail.
type Failpoint struct {
sync.Mutex

Expand Down

0 comments on commit d89a8d2

Please sign in to comment.