Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 302 for logf (0.08 sec)

  1. src/runtime/internal/wasitest/tcpecho_test.go

    		t.Fatal(err)
    	}
    	var buf [256]byte
    	n, err := conn.Read(buf[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	if string(buf[:n]) != string(payload) {
    		t.Error("unexpected payload")
    		t.Logf("expect: %d bytes (%v)", len(payload), payload)
    		t.Logf("actual: %d bytes (%v)", n, buf[:n])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 22:01:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/swig_test.go

    		minor = atoi(string(matches[2][1:]))
    	}
    	if len(matches[3]) > 0 {
    		patch = atoi(string(matches[3][1:]))
    	}
    	if parseError != nil {
    		t.Logf("error parsing swig version %q, continuing anyway: %s", string(matches[0]), parseError)
    		return
    	}
    	t.Logf("found swig version %d.%d.%d", major, minor, patch)
    	if major < 3 || (major == 3 && minor == 0 && patch < 6) {
    		t.Skip("test requires swig 3.0.6 or later")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. operator/cmd/mesh/operator_test.go

    	cmd += " --manifests=" + string(snapshotCharts)
    
    	gotYAML, err := runCommand(cmd)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if refreshGoldenFiles() {
    		t.Logf("Refreshing golden file for %s", goldenFilepath)
    		if err := os.WriteFile(goldenFilepath, []byte(gotYAML), 0o644); err != nil {
    			t.Error(err)
    		}
    	}
    
    	wantYAML, err := readFile(goldenFilepath)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:33 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. src/runtime/time_test.go

    	cmd.Stdout = &stdout
    	cmd.Stderr = &stderr
    
    	err = testenv.CleanCmdEnv(cmd).Run()
    	if err != nil {
    		t.Fatalf("exit status: %v\n%s", err, stderr.String())
    	}
    
    	t.Logf("raw stdout: %q", stdout.String())
    	t.Logf("raw stderr: %q", stderr.String())
    
    	f1, err1 := parseFakeTime(stdout.Bytes())
    	if err1 != nil {
    		t.Fatal(err1)
    	}
    	f2, err2 := parseFakeTime(stderr.Bytes())
    	if err2 != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 03:40:04 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/net/file_test.go

    	switch runtime.GOOS {
    	case "plan9", "windows", "js", "wasip1":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	for _, tt := range fileConnTests {
    		if !testableNetwork(tt.network) {
    			t.Logf("skipping %s test", tt.network)
    			continue
    		}
    
    		var network, address string
    		switch tt.network {
    		case "udp":
    			c := newLocalPacketListener(t, tt.network)
    			defer c.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue18146.go

    		nproc = 7
    	}
    	if setNproc {
    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/os/executable_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, src).CombinedOutput()
    	t.Logf("build output:\n%s", out)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	out, err = testenv.Command(t, exe).CombinedOutput()
    	t.Logf("exec output:\n%s", out)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    const testExecutableDeletion = `package main
    
    import (
    	"fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. src/internal/zstd/fuzz_test.go

    			if c > len(zstdExp) {
    				c = len(zstdExp)
    			}
    			goExp = goExp[:c]
    			zstdExp = zstdExp[:c]
    			if !bytes.Equal(goExp, zstdExp) {
    				t.Error("byte mismatch after error")
    				t.Logf("Go error: %v\n", goErr)
    				t.Logf("zstd error: %v\n", zstdErr)
    				showDiffs(t, zstdExp, goExp)
    			}
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. src/net/platform_test.go

    	// fully implemented yet on Plan 9 and Windows.
    	switch runtime.GOOS {
    	case "windows", "js", "wasip1":
    		if network == "file+net" {
    			t.Logf(format, args...)
    			return
    		}
    	case "plan9":
    		t.Logf(format, args...)
    		return
    	}
    	t.Fatalf(format, args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fail_fast.txt

    package failfast
    
    import "testing"
    
    func TestA(t *testing.T) {
    	// Edge-case testing, mixing unparallel tests too
    	t.Logf("LOG: %s", t.Name())
    }
    
    func TestFailingA(t *testing.T) {
    	t.Errorf("FAIL - %s", t.Name())
    }
    
    func TestB(t *testing.T) {
    	// Edge-case testing, mixing unparallel tests too
    	t.Logf("LOG: %s", t.Name())
    }
    
    func TestParallelFailingA(t *testing.T) {
    	t.Parallel()
    	t.Errorf("FAIL - %s", t.Name())
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top