mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 21:09:02 +00:00
Revert "fix: implement testing {Skip,Fail}Now"
This reverts commit c5879c682c.
It doesn't look like this is working (see
https://github.com/tinygo-org/tinygo/pull/4736#issuecomment-2679670226),
and it doesn't have any tests anyway to prove that it does work. So I
think it's best to revert it for now and add a working implementation
with tests in the future.
This commit is contained in:
committed by
Ron Evans
parent
4372dbdd41
commit
a6cd072fa1
@@ -17,7 +17,6 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -208,8 +207,9 @@ func (c *common) Failed() bool {
|
|||||||
// current goroutine).
|
// current goroutine).
|
||||||
func (c *common) FailNow() {
|
func (c *common) FailNow() {
|
||||||
c.Fail()
|
c.Fail()
|
||||||
|
|
||||||
c.finished = true
|
c.finished = true
|
||||||
runtime.Goexit()
|
c.Error("FailNow is incomplete, requires runtime.Goexit()")
|
||||||
}
|
}
|
||||||
|
|
||||||
// log generates the output.
|
// log generates the output.
|
||||||
@@ -281,7 +281,7 @@ func (c *common) Skipf(format string, args ...interface{}) {
|
|||||||
func (c *common) SkipNow() {
|
func (c *common) SkipNow() {
|
||||||
c.skip()
|
c.skip()
|
||||||
c.finished = true
|
c.finished = true
|
||||||
runtime.Goexit()
|
c.Error("SkipNow is incomplete, requires runtime.Goexit()")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *common) skip() {
|
func (c *common) skip() {
|
||||||
|
|||||||
Reference in New Issue
Block a user