- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 285 for goexits (0.17 sec)
-
src/cmd/go/testdata/script/test_json_panic_exit.txt
! stdout '"Test":.*\n\z' # 'go test -json' should say a test passes if it exits 0 and prints nothing. # TODO(golang.org/issue/29062): this should fail in the future. go test -json ./exit0main stdout '"Action":"pass".*\n\z' ! stdout '"Test":.*\n\z' # 'go test -json' should say a test fails if it exits 1 and prints nothing. ! go test -json ./exit1main stdout '"Action":"fail".*\n\z' ! stdout '"Test":.*\n\z'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_timeout_stdin.txt
# a test that exits with an I/O stream held open # should fail after a reasonable delay, not wait forever. # (As of the time of writing, that delay is 10% of the timeout, # but this test does not depend on its specific value.) [short] skip 'runs a test that hangs until its WaitDelay expires' ! go test -v -timeout=1m . # After the test process itself prints PASS and exits,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 20:23:27 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_exit.txt
# Builds and runs test binaries, so skip in short mode. [short] skip env GO111MODULE=on # If a test invoked by 'go test' exits with a zero status code, # it will panic. ! go test ./zero ! stdout ^ok ! stdout 'exit status' stdout 'panic' stdout ^FAIL # If a test exits with a non-zero status code, 'go test' fails normally. ! go test ./one ! stdout ^ok stdout 'exit status' ! stdout 'panic' stdout ^FAIL
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 14 20:38:03 UTC 2021 - 2.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_cleanup_failnow.txt
# to increase the probability of such a failure. env GOMAXPROCS=1 env GOGC=off # If the test exits with 'no tests to run', it means the testing package # implementation is incorrect and does not wait until a test panic. # If the test exits with '(?s)panic: die.*panic: die', it means # the testing package did an extra panic for a panicking test.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 14:49:13 UTC 2022 - 1.3K bytes - Viewed (0) -
src/testing/example.go
// If the test is chatty/verbose, it'll print a success message to stdout. // If recovered is non-nil, it'll panic with that value. // If the test panicked with nil, or invoked runtime.Goexit, it'll be // made to fail and panic with errNilPanicOrGoexit func (eg *InternalExample) processRunResult(stdout string, timeSpent time.Duration, finished bool, recovered any) (passed bool) { passed = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/TransformErrorHandlerTest.groovy
handler.enterClassLoadingScope("some/Class") handler.exitClassLoadingScope() then: noExceptionThrown() } def "rethrows the #expectedExceptionClass.simpleName if the scope exits with #exception.class.simpleName"() { given: TransformErrorHandler handler = handler() when: handler.enterClassLoadingScope("some/Class")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 3.8K bytes - Viewed (0) -
src/runtime/asm_riscv64.s
MOV savedX27-8(SP), g RET // func goexit(neverCallThisFunction) // The top-most function running on a goroutine // returns to goexit+PCQuantum. TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 MOV ZERO, ZERO // NOP JMP runtime·goexit1(SB) // does not return // traceback from goexit1 must hit code range of goexit MOV ZERO, ZERO // NOP
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 13:57:06 UTC 2023 - 27K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/likelyadjust.go
header *Block // The header node of this (reducible) loop outer *loop // loop containing this loop // By default, children, exits, and depth are not initialized. children []*loop // loops nested directly within this loop. Initialized by assembleChildren(). exits []*Block // exits records blocks reached by exits from this loop. Initialized by findExits(). // Next three fields used by regalloc and/or
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 15.4K bytes - Viewed (0) -
src/sync/oncefunc_test.go
return } t.Fatalf("%s: want nil panic, got %v", label, p) }) } func TestOnceFuncGoexit(t *testing.T) { // If f calls Goexit, the results are unspecified. But check that f doesn't // get called twice. calls := 0 f := sync.OnceFunc(func() { calls++ runtime.Goexit() }) var wg sync.WaitGroup for i := 0; i < 2; i++ { wg.Add(1) go func() { defer wg.Done()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 6.9K bytes - Viewed (0) -
src/testing/testing.go
c.Fail() // Calling runtime.Goexit will exit the goroutine, which // will run the deferred functions in this goroutine, // which will eventually run the deferred lines in tRunner, // which will signal to the test loop that this test is done. // // A previous version of this code said: // // c.duration = ... // c.signal <- c.self // runtime.Goexit() //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)