Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 132 for Failure (0.11 sec)

  1. src/cmd/go/internal/modload/query.go

    		ctx := trace.StartGoroutine(ctx)
    		go func(p string, r *result) {
    			r.QueryResult, r.err = queryModule(ctx, p)
    			wg.Done()
    		}(p, &results[i])
    	}
    	wg.Wait()
    
    	// Classify the results. In case of failure, identify the error that the user
    	// is most likely to find helpful: the most useful class of error at the
    	// longest matching path.
    	var (
    		noPackage      *PackageNotInModuleError
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  2. src/os/exec/exec_test.go

    	if n != len(buf) || err != nil || string(buf) != "O:hi\n" {
    		t.Fatalf("ReadFull = %d, %v, %q", n, err, buf[:n])
    	}
    	go cancel()
    
    	if err := c.Wait(); err == nil {
    		t.Fatal("expected Wait failure")
    	}
    }
    
    func TestContextCancel(t *testing.T) {
    	if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
    		maySkipHelperCommand("cat")
    		testenv.SkipFlaky(t, 42061)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  3. src/regexp/exec_test.go

    	//     returned.
    	switch {
    	case s == "":
    		// Match with no position information.
    		ok = true
    		compiled = true
    		matched = true
    		return
    	case s == "NOMATCH":
    		// Match failure.
    		ok = true
    		compiled = true
    		matched = false
    		return
    	case 'A' <= s[0] && s[0] <= 'Z':
    		// All the other error codes are compile errors.
    		ok = true
    		compiled = false
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/toolchain/select.go

    	// and reinvoking the current binary.
    	// The special cases =loop and =mismatch skip the
    	// setting of TESTGO_VERSION so that it looks like we
    	// accidentally invoked the wrong toolchain,
    	// to test detection of that failure mode.
    	switch TestVersionSwitch {
    	case "switch":
    		os.Setenv("TESTGO_VERSION", gotoolchain)
    		fallthrough
    	case "loop", "mismatch":
    		exe, err := os.Executable()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. src/testing/fuzz.go

    			}
    			return nil
    		}); err != nil {
    			// Internal errors are marked with f.Fail; user code may call this too, before F.Fuzz.
    			// The worker will exit with fuzzWorkerExitCode, indicating this is a failure
    			// (and 'go test' should exit non-zero) but a failing input should not be recorded.
    			f.Errorf("communicating with fuzzing coordinator: %v", err)
    		}
    
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. src/encoding/xml/xml.go

    }
    
    // Read plain text section (XML calls it character data).
    // If quote >= 0, we are in a quoted string and need to find the matching quote.
    // If cdata == true, we are in a <![CDATA[ section and need to find ]]>.
    // On failure return nil and leave the error in d.err.
    func (d *Decoder) text(quote int, cdata bool) []byte {
    	var b0, b1 byte
    	var trunc int
    	d.buf.Reset()
    Input:
    	for {
    		b, ok := d.getc()
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  7. src/os/file.go

    // If the file does not exist, WriteFile creates it with permissions perm (before umask);
    // otherwise WriteFile truncates it before writing, without changing permissions.
    // Since WriteFile requires multiple system calls to complete, a failure mid-operation
    // can leave the file in a partially written state.
    func WriteFile(name string, data []byte, perm FileMode) error {
    	f, err := OpenFile(name, O_WRONLY|O_CREATE|O_TRUNC, perm)
    	if err != nil {
    		return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. src/internal/fuzz/fuzz.go

    				break
    			}
    			c.updateStats(result)
    
    			if result.crasherMsg != "" {
    				if c.warmupRun() && result.entry.IsSeed {
    					target := filepath.Base(c.opts.CorpusDir)
    					fmt.Fprintf(c.opts.Log, "failure while testing seed corpus entry: %s/%s\n", target, testName(result.entry.Parent))
    					stop(errors.New(result.crasherMsg))
    					break
    				}
    				if c.canMinimize() && result.canMinimize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  9. src/runtime/map_test.go

    				break
    			}
    		}
    	}
    }
    
    // Issue 8410
    func TestMapSparseIterOrder(t *testing.T) {
    	// Run several rounds to increase the probability
    	// of failure. One is not enough.
    NextRound:
    	for round := 0; round < 10; round++ {
    		m := make(map[int]bool)
    		// Add 1000 items, remove 980.
    		for i := 0; i < 1000; i++ {
    			m[i] = true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. src/internal/fuzz/worker.go

    				// Worker exited with a code indicating F.Fuzz was not called correctly,
    				// for example, F.Fail was called first.
    				return fmt.Errorf("fuzzing process exited unexpectedly due to an internal failure: %w", err)
    			}
    			// Worker exited non-zero or was terminated by a non-interrupt
    			// signal (for example, SIGSEGV) while fuzzing.
    			return fmt.Errorf("fuzzing process hung or terminated unexpectedly: %w", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top