Closed lysu closed 5 years ago
Please answer these questions before submitting your issue. Thanks!
package testpkg import ( "fmt" "github.com/pingcap/failpoint" ) func test() { func() { failpoint.Inject("testPoint", func() { fmt.Println() }) }() }
then failpoint-ctl enable~
failpoint-ctl enable
func test() { func() { if _, ok := failpoint.Eval(_curpkg_("testPoint")); ok { fmt.Println() } }() }
func test() { func() { failpoint.Inject("testPoint", func() { fmt.Println() }) }() }
failpoint-ctl version (run failpoint-ctl -V):
failpoint-ctl -V
ReleaseVersion None BuildTS None GitHash None GitBranch None GoVersion None newest tidb master
Bug Report
Please answer these questions before submitting your issue. Thanks!
then
failpoint-ctl enable
~failpoint-ctl version (run
failpoint-ctl -V
):