Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 242 for Failure (0.12 sec)

  1. src/cmd/go/internal/script/engine.go

    			// Command prefix ! means negate the expectations about this command:
    			// go command should fail, match should not be found, etc.
    			// Prefix ? means allow either success or failure.
    			switch want := expectedStatus(arg); want {
    			case failure, successOrFailure:
    				if cmd.want != "" {
    					return errors.New("duplicated '!' or '?' token")
    				}
    				cmd.want = want
    				return nil
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. src/regexp/all_test.go

    	if re == nil {
    		return
    	}
    	m := re.MatchString(test.text)
    	if m != (len(test.matches) > 0) {
    		t.Errorf("MatchString failure on %s: %t should be %t", test, m, len(test.matches) > 0)
    	}
    	// now try bytes
    	m = re.Match([]byte(test.text))
    	if m != (len(test.matches) > 0) {
    		t.Errorf("Match failure on %s: %t should be %t", test, m, len(test.matches) > 0)
    	}
    }
    
    func TestMatch(t *testing.T) {
    	for _, test := range findTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. src/net/cgo_unix.go

    		return nil, errors.New("res_ninit failure: " + err.Error())
    	}
    	defer _C_res_nclose(state)
    
    	// Some res_nsearch implementations (like macOS) do not set errno.
    	// They set h_errno, which is not per-thread and useless to us.
    	// res_nsearch returns the size of the DNS response packet.
    	// But if the DNS response packet contains failure-like response codes,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. src/syscall/syscall.go

    // the manuals for the appropriate operating system.
    // These calls return err == nil to indicate success; otherwise
    // err is an operating system error describing the failure.
    // On most systems, that error has type [Errno].
    //
    // NOTE: Most of the functions, types, and constants defined in
    // this package are also available in the [golang.org/x/sys] package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/internal/coverage/cfile/emit.go

    		return
    	}
    	ml, err := prepareForMetaEmit()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "error: coverage meta-data prep failed: %v\n", err)
    		if os.Getenv("GOCOVERDEBUG") != "" {
    			panic("meta-data write failure")
    		}
    	}
    	if len(ml) == 0 {
    		fmt.Fprintf(os.Stderr, "program not built with -cover\n")
    		return
    	}
    
    	goCoverDir = os.Getenv("GOCOVERDIR")
    	if goCoverDir == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_libinit.c

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    // When cross-compiling with clang to linux/armv5, atomics are emulated
    // and cause a compiler warning. This results in a build failure since
    // cgo uses -Werror. See #65290.
    #pragma GCC diagnostic ignored "-Wpragmas"
    #pragma GCC diagnostic ignored "-Wunknown-warning-option"
    #pragma GCC diagnostic ignored "-Watomic-alignment"
    
    #include <pthread.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/runtime/syscall_aix.go

    // as it's never used on AIX
    // TODO: remove r2 from zsyscall_aix_$GOARCH.go
    
    // Syscall is needed because some packages (like net) need it too.
    // The best way is to return EINVAL and let Golang handles its failure
    // If the syscall can't fail, this function can redirect it to a real syscall.
    //
    // This is exported via linkname to assembly in the syscall package.
    //
    //go:nosplit
    //go:linkname syscall_Syscall
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. src/testing/example.go

    // recovered is the result of invoking recover after running the test, in case it panicked.
    //
    // If stdout doesn't match the expected output or if recovered is non-nil, it'll print the cause of failure to stdout.
    // 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/runtime/extern.go

    program fails due to an unrecovered panic or an unexpected runtime condition.
    By default, a failure prints a stack trace for the current goroutine,
    eliding functions internal to the run-time system, and then exits with exit code 2.
    The failure prints stack traces for all goroutines if there is no current goroutine
    or the failure is internal to the run-time.
    GOTRACEBACK=none omits the goroutine stack traces entirely.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. src/cmd/test2json/main.go

    //
    // When a benchmark runs, it typically produces a single line of output
    // giving timing results. That line is reported in an event with Action == "output"
    // and no Test field. If a benchmark logs output or reports a failure
    // (for example, by using b.Log or b.Error), that extra output is reported
    // as a sequence of events with Test set to the benchmark name, terminated
    // by a final event with Action == "bench" or "fail".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top