Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for runFails (0.1 sec)

  1. cmd/kubeadm/app/cmd/phases/workflow/runner_test.go

    		Short:  fmt.Sprintf("long description for %s ...", name),
    		Phases: phases,
    		Run:    run,
    		RunIf:  runIf,
    	}
    }
    
    func runPass(data RunData) error {
    	return nil
    }
    
    func runFails(data RunData) error {
    	return errors.New("run fails")
    }
    
    func runConditionPass(data RunData) (bool, error) {
    	return true, nil
    }
    
    func runConditionFails(data RunData) (bool, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 20:03:45 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  2. test/linkmain_run.go

    	run("go tool compile -importcfg", tmp("importcfg"), "-p=notmain -pack -o", tmp("linkmain1.a"), "linkmain.go")
    	runFail("go tool link -importcfg", tmp("importcfg"), "-o", tmp("linkmain.exe"), tmp("linkmain1.o"))
    	runFail("go tool link -importcfg", tmp("importcfg"), "-o", tmp("linkmain.exe"), tmp("linkmain1.a"))
    	cleanup()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/go_test.go

    	if runtime.Compiler == "gccgo" {
    		tg.runFail("build", "-gccgoflags=all=@x", "x")
    	} else {
    		tg.runFail("build", "-gcflags=all=@x", "x")
    	}
    	tg.grepStderr("invalid command-line argument @x in command", "did not reject @x during exec")
    
    	tg.tempFile("src/@x/x.go", "package x\n")
    	tg.setenv("GOPATH", tg.path("."))
    	tg.runFail("build", "@x")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  4. test/linkobj.go

    	if err != nil {
    		fatalf("run %v: %s\n%s", args, err, out)
    	}
    	return string(out)
    }
    
    func runFail(args ...string) string {
    	out, err := exec.Command(args[0], args[1:]...).CombinedOutput()
    	if err == nil {
    		fatalf("runFail %v: unexpected success!\n%s", args, err, out)
    	}
    	return string(out)
    }
    
    func cp(src, dst string) {
    	data, err := ioutil.ReadFile(src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. pkg/util/iptables/iptables_test.go

    	}
    
    	if fcmd.CombinedOutputCalls != 1 {
    		t.Errorf("%s: Expected 1 CombinedOutput() calls, got %d", protocol, fcmd.CombinedOutputCalls)
    	}
    	if fcmd.RunCalls != 1 {
    		t.Errorf("%s: Expected 1 Run() call, got %d", protocol, fcmd.RunCalls)
    	}
    	if !sets.New(fcmd.RunLog[0]...).HasAll(iptablesSaveCmd, "-t", "nat") {
    		t.Errorf("%s: Expected cmd containing '%s -t nat', got '%s'", protocol, iptablesSaveCmd, fcmd.RunLog[0])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
Back to top