Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for badexec (3.61 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/syntax/parser.go

    					}
    				}
    			} else {
    				msg = "mixed named and unnamed parameters"
    			}
    			p.syntaxErrorAt(errPos, msg)
    		}
    	}
    
    	return
    }
    
    func (p *parser) badExpr() *BadExpr {
    	b := new(BadExpr)
    	b.pos = p.pos()
    	return b
    }
    
    // ----------------------------------------------------------------------------
    // Statements
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  5. pkg/test/kube/dump.go

    			if !crashed && restarts == 0 {
    				// no need to store this dump
    				continue
    			}
    
    			findDumps := fmt.Sprintf("find %s -name core.*", coredumpDir)
    			stdout, _, err := c.PodExec(pod.Name, pod.Namespace, container.Name, findDumps)
    			if err != nil {
    				scopes.Framework.Warnf("Unable to get core dumps for cluster/pod: %s/%s/%s: %v",
    					c.Name(), pod.Namespace, pod.Name, err)
    				continue
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. 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)
  7. tests/integration/security/fuzz/fuzz_test.go

    		// "-r %s.txt": report filename.
    		command := fmt.Sprintf(`./run.sh -m http -h %s -x 8080 -C -d 1 -t 50 -f private/secret.html -k secret_data_leaked -r %s.txt`, server, server)
    		stdout, stderr, err := t.Clusters().Default().PodExec(pods.Items[0].Name, ns, dotdotpwn, command)
    		if err != nil {
    			t.Fatalf("failed to run dotdotpwn: %v", err)
    		}
    		t.Logf("%s\n%s\n", stdout, stderr)
    		t.Logf("dotdotpwn fuzz test completed for %s", server)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. tests/integration/pilot/istioctl_test.go

       DestinationRule: a\..* for "a"
          Matching subsets: v1
          No Traffic Policy
    `)
    
    	describePodAOutput = describeSvcAOutput
    )
    
    // This test requires `--istio.test.env=kube` because it tests istioctl doing PodExec
    // TestVersion does "istioctl version --remote=true" to verify the CLI understands the data plane version data
    func TestVersion(t *testing.T) {
    	// nolint: staticcheck
    	framework.
    		NewTest(t).RequiresSingleCluster().
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15K 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