Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 242 for Failure (0.3 sec)

  1. src/cmd/go/go_unix_test.go

    	cmd.Dir = tg.execDir
    
    	// Override $TMPDIR when running the tests: since we're terminating the tests
    	// with a signal they might fail to clean up some temp files, and we don't
    	// want that to cause an "unexpected files" failure at the end of the run.
    	cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir())
    
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setpgid: true,
    	}
    	cmd.Cancel = func() error {
    		pgid := cmd.Process.Pid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/crypto/rsa/example_test.go

    	// we read the random key that will be used if the RSA decryption isn't
    	// well-formed.
    	key := make([]byte, 32)
    	if _, err := rand.Read(key); err != nil {
    		panic("RNG failure")
    	}
    
    	rsaCiphertext, _ := hex.DecodeString("aabbccddeeff")
    
    	if err := rsa.DecryptPKCS1v15SessionKey(nil, rsaPrivateKey, rsaCiphertext, key); err != nil {
    		// Any errors that result will be “public” – meaning that they
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/context/example_test.go

    	d := time.Now().Add(shortDuration)
    	ctx, cancel := context.WithDeadline(context.Background(), d)
    
    	// Even though ctx will be expired, it is good practice to call its
    	// cancellation function in any case. Failure to do so may keep the
    	// context and its parent alive longer than necessary.
    	defer cancel()
    
    	select {
    	case <-neverReady:
    		fmt.Println("ready")
    	case <-ctx.Done():
    		fmt.Println(ctx.Err())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. src/runtime/mpallocbits.go

    // starts as well as the index of the first free page it finds in its search.
    //
    // See find for an explanation of the searchIdx parameter.
    //
    // Returns a ^uint(0) index on failure and the new searchIdx should be ignored.
    //
    // findSmallN assumes npages <= 64, where any such contiguous run of pages
    // crosses at most one aligned 64-bit boundary in the bits.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/syscall.go

    // the manuals for the appropriate operating system.
    //
    // These calls return err == nil to indicate success; otherwise
    // err represents an operating system error describing the failure and
    // holds a value of type syscall.Errno.
    package windows // import "golang.org/x/sys/windows"
    
    import (
    	"bytes"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    	files, err := ioutil.ReadDir(dir)
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    
    	if len(files) == 0 {
    		fmt.Fprintf(os.Stderr, "expect at least one failure to be written to testdata\n")
    		os.Exit(1)
    	}
    
    	for _, f := range files {
    		data, err := ioutil.ReadFile(filepath.Join(dir, f.Name()))
    		if err != nil {
    			panic(err)
    		}
    		var containsVal bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. src/testing/testing.go

    	short = flag.Bool("test.short", false, "run smaller test suite to save time")
    
    	// The failfast flag requests that test execution stop after the first test failure.
    	failFast = flag.Bool("test.failfast", false, "do not start new tests after the first test failure")
    
    	// The directory in which to create profile files and the like. When run from
    	// "go test", the binary always runs in the source directory for the package;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/conversions.go

    // is tricky because we'd have to run updateExprType on the argument first.
    // (go.dev/issue/21982.)
    
    // convertibleTo reports whether T(x) is valid. In the failure case, *cause
    // may be set to the cause for the failure.
    // The check parameter may be nil if convertibleTo is invoked through an
    // exported API call, i.e., when all methods have been type-checked.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. src/mime/mediatype.go

    }
    
    // consumeToken consumes a token from the beginning of provided
    // string, per RFC 2045 section 5.1 (referenced from 2183), and return
    // the token consumed and the rest of the string. Returns ("", v) on
    // failure to consume at least one character.
    func consumeToken(v string) (token, rest string) {
    	notPos := strings.IndexFunc(v, isNotTokenChar)
    	if notPos == -1 {
    		return v, ""
    	}
    	if notPos == 0 {
    		return "", v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/runtime/vdso_test.go

    			t.Logf("found %d gettime calls, want < %d", cgot, 100)
    			t.Log("C program does not use VDSO either")
    			return
    		}
    
    		// The Go program used the system call but the C
    		// program did not. This is a VDSO failure for Go.
    		t.Errorf("did not use VDSO system call")
    	}
    }
    
    const vdsoCProgram = `
    #include <stdio.h>
    #include <time.h>
    
    int main() {
    	int i;
    	time_t tot;
    	for (i = 0; i < 100; i++) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:47:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top