Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,727 for exit2 (0.05 sec)

  1. src/cmd/compile/internal/ssa/regalloc_test.go

    			Eq("a", "loop2", "exit1"),
    		),
    		Bloc("loop2",
    			Eq("a", "loop1", "exit2"),
    		),
    		Bloc("exit1",
    			// store before call, y is available in a register
    			Valu("mem2", OpAMD64MOVQstore, types.TypeMem, 0, nil, "p", "y", "mem"),
    			Valu("mem3", OpAMD64CALLstatic, types.TypeMem, 0, AuxCallLSym("_"), "mem2"),
    			Exit("mem3"),
    		),
    		Bloc("exit2",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. src/runtime/ehooks_test.go

    				expected: "blub blix",
    			},
    			{
    				mode: "panics",
    				musthave: []string{
    					"fatal error: exit hook invoked panic",
    					"main.testPanics",
    				},
    			},
    			{
    				mode: "callsexit",
    				musthave: []string{
    					"fatal error: exit hook invoked exit",
    				},
    			},
    			{
    				mode:     "exit2",
    				expected: "",
    			},
    		}
    
    		exe, err := buildTestProg(t, "testexithooks", bmode)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/runtime/testdata/testexithooks/testexithooks.go

    	f2 := func() { os.Exit(1) }
    	f3 := func() { println("good") }
    	exithook.Add(exithook.Hook{F: f1, RunOnFailure: true})
    	exithook.Add(exithook.Hook{F: f2, RunOnFailure: true})
    	exithook.Add(exithook.Hook{F: f3, RunOnFailure: true})
    	os.Exit(1)
    }
    
    func testExit2() {
    	f1 := func() { time.Sleep(100 * time.Millisecond) }
    	exithook.Add(exithook.Hook{F: f1})
    	for range 10 {
    		go os.Exit(0)
    	}
    	os.Exit(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/internal/testlog/exit.go

    import (
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // PanicOnExit0 reports whether to panic on a call to os.Exit(0).
    // This is in the testlog package because, like other definitions in
    // package testlog, it is a hook between the testing package and the
    // os package. This is used to ensure that an early call to os.Exit(0)
    // does not cause a test to pass.
    func PanicOnExit0() bool {
    	panicOnExit0.mu.Lock()
    	defer panicOnExit0.mu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/util.go

    	}
    	atExitFuncs = nil
    }
    
    // Exit exits with code after executing all atExitFuncs.
    func Exit(code int) {
    	runAtExitFuncs()
    	os.Exit(code)
    }
    
    // Exitf logs an error message then calls Exit(2).
    func Exitf(format string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, os.Args[0]+": "+format+"\n", a...)
    	nerrors++
    	if *flagH {
    		panic("error")
    	}
    	Exit(2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 20:39:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_exit.txt

    [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
    
    # Ensure that other flags still do the right thing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 14 20:38:03 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. test/typeparam/graph.go

    	18: {exits: [10]int{down: 16, east: 19, west: 18, up: 22}},
    	19: {exits: [10]int{up: 29, west: 18, ne: 15, east: 20, south: 30}},
    	20: {exits: [10]int{ne: 19, west: 20, se: 21}},
    	21: {exits: [10]int{north: 20}}, // Dead End
    	22: {exits: [10]int{north: 18, east: 24, down: 23, south: 28, west: 26, nw: 22}},
    	23: {exits: [10]int{east: 22, west: 28, up: 24}},
    	24: {exits: [10]int{ne: 25, down: 23, nw: 28, sw: 26}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/error.go

    	// ErrExit is an error returned when kubeadm is about to exit
    	ErrExit = errors.New("exit")
    )
    
    // fatal prints the message if set and then exits.
    func fatal(msg string, code int) {
    	if len(msg) > 0 {
    		// add newline if needed
    		if !strings.HasSuffix(msg, "\n") {
    			msg += "\n"
    		}
    
    		fmt.Fprint(os.Stderr, msg)
    	}
    	os.Exit(code)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top