Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for badexec (0.15 sec)

  1. src/internal/testenv/testenv_test.go

    	}
    
    	t.Logf("HasGoBuild is true; checking consistency with other functions")
    
    	hasExec := false
    	hasExecGo := false
    	t.Run("MustHaveExec", func(t *testing.T) {
    		testenv.MustHaveExec(t)
    		hasExec = true
    	})
    	t.Run("MustHaveExecPath", func(t *testing.T) {
    		testenv.MustHaveExecPath(t, "go")
    		hasExecGo = true
    	})
    	if !hasExec {
    		t.Errorf(`MustHaveExec(t) skipped unexpectedly`)
    	}
    	if !hasExecGo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/cmd/go/scriptcmds_test.go

    			return cmd.Process.Signal(interrupt)
    		}
    	}
    
    	cmdExec := script.Exec(cancel, waitDelay)
    	cmds["exec"] = cmdExec
    
    	add := func(name string, cmd script.Cmd) {
    		if _, ok := cmds[name]; ok {
    			panic(fmt.Sprintf("command %q is already registered", name))
    		}
    		cmds[name] = cmd
    	}
    
    	add("cc", scriptCC(cmdExec))
    	cmdGo := scriptGo(cancel, waitDelay)
    	add("go", cmdGo)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/ehooks_test.go

    			expected string
    			musthave []string
    		}{
    			{
    				mode:     "simple",
    				expected: "bar foo",
    			},
    			{
    				mode:     "goodexit",
    				expected: "orange apple",
    			},
    			{
    				mode:     "badexit",
    				expected: "blub blix",
    			},
    			{
    				mode: "panics",
    				musthave: []string{
    					"fatal error: exit hook invoked panic",
    					"main.testPanics",
    				},
    			},
    			{
    				mode: "callsexit",
    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/runtime/testdata/testexithooks/testexithooks.go

    	_ "unsafe"
    )
    
    var modeflag = flag.String("mode", "", "mode to run in")
    
    func main() {
    	flag.Parse()
    	switch *modeflag {
    	case "simple":
    		testSimple()
    	case "goodexit":
    		testGoodExit()
    	case "badexit":
    		testBadExit()
    	case "panics":
    		testPanics()
    	case "callsexit":
    		testHookCallsExit()
    	case "exit2":
    		testExit2()
    	default:
    		panic("unknown mode")
    	}
    }
    
    func testSimple() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/positions.go

    			return MakePos(n.Pos().Base(), 1, 1)
    
    		// declarations
    		// case *ImportDecl:
    		// case *ConstDecl:
    		// case *TypeDecl:
    		// case *VarDecl:
    		// case *FuncDecl:
    
    		// expressions
    		// case *BadExpr:
    		// case *Name:
    		// case *BasicLit:
    		case *CompositeLit:
    			if n.Type != nil {
    				m = n.Type
    				continue
    			}
    			return n.Pos()
    		case *KeyValueExpr:
    			m = n.Key
    		// case *FuncLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/env_write.txt

    ! go env -w GOMODCACHE=./test
    stderr 'go: GOMODCACHE entry is relative; must be absolute path: "./test"'
    
    # go env -w checks validity of GOEXPERIMENT
    env GOEXPERIMENT=
    ! go env -w GOEXPERIMENT=badexp
    stderr 'unknown GOEXPERIMENT badexp'
    go env -w GOEXPERIMENT=fieldtrack
    
    # go env -w and go env -u work on unknown fields already in the go/env file
    cp bad.env $GOENV
    go env GOENV
    cat $GOENV
    go env
    ! stdout UNKNOWN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:42:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. tests/integration/pilot/proxyconfig/proxyconfig_test.go

    			for _, w := range i.WorkloadsOrFail(t) {
    				w := w
    				for k, v := range values {
    					// can we rely on printenv being in the container once distroless is default?
    					out, _, err := i.Config().Cluster.PodExec(w.PodName(), i.Config().Namespace.Name(),
    						"istio-proxy", fmt.Sprintf("printenv %s", k))
    					out = strings.TrimSuffix(out, "\n")
    					if err != nil {
    						return fmt.Errorf("could not exec into pod: %v", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. src/go/types/exprstring.go

    	// operator precedences. (This assumes that the AST was
    	// generated by a Go parser.)
    
    	switch x := x.(type) {
    	default:
    		fmt.Fprintf(buf, "(ast: %T)", x) // nil, ast.BadExpr, ast.KeyValueExpr
    
    	case *ast.Ident:
    		buf.WriteString(x.Name)
    
    	case *ast.Ellipsis:
    		buf.WriteString("...")
    		if x.Elt != nil {
    			WriteExpr(buf, x.Elt)
    		}
    
    	case *ast.BasicLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/go/ast/walk.go

    			Walk(v, n.Type)
    		}
    		if n.Tag != nil {
    			Walk(v, n.Tag)
    		}
    		if n.Comment != nil {
    			Walk(v, n.Comment)
    		}
    
    	case *FieldList:
    		walkList(v, n.List)
    
    	// Expressions
    	case *BadExpr, *Ident, *BasicLit:
    		// nothing to do
    
    	case *Ellipsis:
    		if n.Elt != nil {
    			Walk(v, n.Elt)
    		}
    
    	case *FuncLit:
    		Walk(v, n.Type)
    		Walk(v, n.Body)
    
    	case *CompositeLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. tests/integration/pilot/vm_test.go

    	cmd := "pilot-discovery request GET /debug/force_disconnect?proxyID=" + proxyID
    	stdOut, _, err := t.Clusters().Default().
    		PodExec(pilot, i.Settings().SystemNamespace, "discovery", cmd)
    	if err != nil {
    		scopes.Framework.Warnf("failed to force disconnect %s: %v: %v", proxyID, stdOut, err)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top