Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for SrcPath (0.21 sec)

  1. src/cmd/cgo/internal/testsanitizers/asan_test.go

    		t.Run(name, func(t *testing.T) {
    			t.Parallel()
    
    			dir := newTempDir(t)
    			defer dir.RemoveAll(t)
    
    			outPath := dir.Join(name)
    			mustRun(t, config.goCmdWithExperiments("build", []string{"-o", outPath, srcPath(tc.src)}, tc.experiments))
    
    			cmd := hangProneCmd(outPath)
    			if tc.memoryAccessError != "" {
    				outb, err := cmd.CombinedOutput()
    				out := string(outb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. cmd/storage-interface.go

    	ReadXL(ctx context.Context, volume, path string, readData bool) (RawFileInfo, error)
    	RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error)
    
    	// File operations.
    	ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) ([]string, error)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/msan_test.go

    		t.Run(name, func(t *testing.T) {
    			t.Parallel()
    
    			dir := newTempDir(t)
    			defer dir.RemoveAll(t)
    
    			outPath := dir.Join(name)
    			mustRun(t, config.goCmdWithExperiments("build", []string{"-o", outPath, srcPath(tc.src)}, tc.experiments))
    
    			cmd := hangProneCmd(outPath)
    			if tc.wantErr {
    				out, err := cmd.CombinedOutput()
    				if err != nil {
    					return
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/cshared_test.go

    			config.skipIfCSanitizerBroken(t)
    
    			dir := newTempDir(t)
    			defer dir.RemoveAll(t)
    
    			lib := dir.Join(fmt.Sprintf("lib%s.%s", name, libExt))
    			mustRun(t, config.goCmd("build", "-buildmode=c-shared", "-o", lib, srcPath(tc.src)))
    
    			cSrc := dir.Join("main.c")
    			if err := os.WriteFile(cSrc, cMain, 0600); err != nil {
    				t.Fatalf("failed to write C source file: %v", err)
    			}
    
    			dstBin := dir.Join(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. cmd/storage-rest-client.go

    func (client *storageRESTClient) RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo,
    	dstVolume, dstPath string, opts RenameOptions,
    ) (res RenameDataResp, err error) {
    	params := RenameDataHandlerParams{
    		DiskID:    *client.diskID.Load(),
    		SrcVolume: srcVolume,
    		SrcPath:   srcPath,
    		DstPath:   dstPath,
    		DstVolume: dstVolume,
    		FI:        fi,
    		Opts:      opts,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-disk-id-check.go

    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricRenameFile, srcVolume, srcPath, dstVolume, dstPath)
    	if err != nil {
    		return err
    	}
    	defer done(0, &err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.RenameFile(ctx, srcVolume, srcPath, dstVolume, dstPath) })
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/list/list.go

    		for i, path := range p.Imports {
    			var srcPath string
    			if i < nRaw {
    				srcPath = p.Internal.RawImports[i]
    			} else {
    				// This path is not within the raw imports, so it must be an import
    				// found only within CompiledGoFiles. Those paths are found in
    				// CompiledImports.
    				srcPath = p.Internal.CompiledImports[i-nRaw]
    			}
    
    			if path != srcPath {
    				if p.ImportMap == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    			// Only log these errors if context is not yet canceled.
    			storageLogOnceIf(ctx, fmt.Errorf("drive:%s, srcVolume: %s, srcPath: %s, dstVolume: %s:, dstPath: %s - error %v",
    				s.drivePath,
    				srcVolume, srcPath,
    				dstVolume, dstPath,
    				err), "xl-storage-rename-data-"+dstVolume)
    		}
    		if s.globalSync {
    			globalSync()
    		}
    	}()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (2)
  9. src/debug/pe/file_test.go

    	if err != nil {
    		t.Skip("skipping test: gcc is missing")
    	}
    
    	tmpdir := t.TempDir()
    
    	srcpath := filepath.Join(tmpdir, "a.c")
    	src := `
    #include <stdio.h>
    
    int zero = 0;
    
    int
    main(void)
    {
    	printf("%d\n", zero);
    	return 0;
    }
    `
    	err = os.WriteFile(srcpath, []byte(src), 0644)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	objpath := filepath.Join(tmpdir, "a.obj")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/cc_test.go

    	}
    	if !bytes.Contains(out, []byte("#define CGO_TSAN")) {
    		return true, fmt.Errorf("%#q did not define CGO_TSAN", cmdStr)
    	}
    	return false, nil
    }
    
    // srcPath returns the path to the given file relative to this test's source tree.
    func srcPath(path string) string {
    	return filepath.Join("testdata", path)
    }
    
    // A tempDir manages a temporary directory within a test.
    type tempDir struct {
    	base string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top