Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 302 for logf (0.05 sec)

  1. src/runtime/traceback_system_test.go

    	}
    	cmd := testenv.Command(t, exe)
    	cmd.Env = append(cmd.Environ(), entrypointVar+"=crash")
    	var stdout, stderr bytes.Buffer
    	cmd.Stdout = &stdout
    	cmd.Stderr = &stderr
    	cmd.Run() // expected to crash
    	t.Logf("stderr:\n%s\nstdout: %s\n", stderr.Bytes(), stdout.Bytes())
    	crash := stdout.String()
    
    	// If the only line is the sentinel, it wasn't a crash.
    	if strings.Count(crash, "\n") < 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/certs/certlist_test.go

    		"leaf0": leaf0,
    	}
    
    	if _, err := orphanCertMap.CertTree(); err == nil {
    		t.Error("expected orphan cert map to error, but got nil")
    	}
    
    	certTree, err := certMap.CertTree()
    	t.Logf("cert tree: %v", certTree)
    	if err != nil {
    		t.Errorf("expected no error, but got %v", err)
    	}
    
    	if len(certTree) != 2 {
    		t.Errorf("Expected tree to have 2 roots, got %d", len(certTree))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. src/runtime/profbuf_test.go

    		if rdata != nil || rtags != nil || !eof {
    			t.Errorf("unexpected profile read (non-blocking): %#x, %#x, eof=%v; want nil, nil, eof=true", rdata, rtags, eof)
    		}
    	}
    
    	myTags := make([]byte, 100)
    	t.Logf("myTags is %p", &myTags[0])
    
    	t.Run("BasicWriteRead", func(t *testing.T) {
    		b := NewProfBuf(2, 11, 1)
    		write(t, b, unsafe.Pointer(&myTags[0]), 1, []uint64{2, 3}, []uintptr{4, 5, 6, 7, 8, 9})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 20:04:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. pkg/filewatcher/filewatcher_test.go

    	watchDir := t.TempDir()
    
    	dataDir1 := path.Join(watchDir, "data1")
    	err := os.Mkdir(dataDir1, 0o777)
    	g.Expect(err).NotTo(HaveOccurred())
    
    	realTestFile := path.Join(dataDir1, "test.conf")
    	t.Logf("Real test file location: %s\n", realTestFile)
    	err = os.WriteFile(realTestFile, []byte("foo: bar\n"), 0o640)
    	g.Expect(err).NotTo(HaveOccurred())
    
    	// Now, symlink the tmp `data1` dir to `data` in the baseDir
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/internal/testenv/exec.go

    		} else {
    			// The command is being terminated due to ctx being canceled, but
    			// apparently not due to an explicit test deadline that we added.
    			// Log that information in case it is useful for diagnosing a failure,
    			// but don't actually fail the test because of it.
    			t.Logf("%v: terminating command: %v", ctx.Err(), cmd)
    		}
    		return cmd.Process.Signal(Sigquit)
    	}
    	cmd.WaitDelay = gracePeriod
    
    	t.Cleanup(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 17:53:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. src/syscall/exec_unix_test.go

    	cmd := testenv.Command(t, executable, "-test.run=^TestRlimitRestored$")
    	cmd = testenv.CleanCmdEnv(cmd)
    	cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1")
    
    	out, err := cmd.CombinedOutput()
    	if len(out) > 0 {
    		t.Logf("%s", out)
    	}
    	if err != nil {
    		t.Fatalf("subprocess failed: %v", err)
    	}
    	s := string(bytes.TrimSpace(out))
    	v, err := strconv.ParseUint(s, 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. src/net/http/internal/chunked_test.go

    		t.Fatalf("chunk writer wrote %q; want %q", g, e)
    	}
    
    	r := NewChunkedReader(&b)
    	data, err := io.ReadAll(r)
    	if err != nil {
    		t.Logf(`data: "%s"`, data)
    		t.Fatalf("ReadAll from reader: %v", err)
    	}
    	if g, e := string(data), chunk1+chunk2; g != e {
    		t.Errorf("chunk reader read %q; want %q", g, e)
    	}
    }
    
    func TestChunkReadMultiple(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 20:45:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/runtime/signal_windows_test.go

    		cmd.Stderr = new(bytes.Buffer)
    
    		line, err := cmd.Output()
    		if err != nil {
    			t.Fatalf("%v: %v\n%s", cmd, err, cmd.Stderr)
    		}
    		out := string(bytes.TrimSpace(line))
    		t.Logf("%v: %q", cmd, out)
    		return out
    	}
    
    	cc := goEnv("CC")
    	cgoCflags := goEnv("CGO_CFLAGS")
    
    	t.Parallel()
    
    	tmpdir := t.TempDir()
    	dllfile := filepath.Join(tmpdir, "test.dll")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. src/net/lookup_windows_test.go

    				testenv.SkipFlaky(t, 38111)
    			}
    			t.Errorf("failed %s: %s", addr, err)
    		}
    		if len(names) == 0 {
    			t.Errorf("no results")
    		}
    		expected, err := lookupPTR(addr)
    		if err != nil {
    			t.Logf("skipping failed lookup %s test: %s", addr, err)
    			continue
    		}
    		slices.Sort(expected)
    		slices.Sort(names)
    		if !reflect.DeepEqual(expected, names) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    		err = cbor.Unmarshal(b, &final)
    		if err != nil {
    			t.Errorf("%v: error decoding %v: %v", initial, string(b), err)
    		}
    		if !final.Equal(&initial) {
    			diag, err := cbor.Diagnose(b)
    			if err != nil {
    				t.Logf("failed to produce diagnostic encoding of 0x%x: %v", b, err)
    			}
    			t.Errorf("expected equal: %v, %v (cbor was '%s')", initial, final, diag)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top