Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 158 for recreate (0.13 sec)

  1. src/runtime/testdata/testsuid/main.go

    	"log"
    	"os"
    )
    
    func main() {
    	if os.Geteuid() == os.Getuid() {
    		os.Exit(99)
    	}
    
    	fmt.Fprintf(os.Stdout, "GOTRACEBACK=%s\n", os.Getenv("GOTRACEBACK"))
    	f, err := os.OpenFile(os.Getenv("TEST_OUTPUT"), os.O_CREATE|os.O_RDWR, 0600)
    	if err != nil {
    		log.Fatalf("os.Open failed: %s", err)
    	}
    	defer f.Close()
    	fmt.Fprintf(os.Stderr, "hello\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 534 bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testRemove_nullPresent() {
        collection = getSubjectGenerator().create(createArrayWithNullElement());
    
        int initialSize = collection.size();
        assertTrue("remove(null) should return true", collection.remove(null));
        assertEquals(
            "remove(present) should decrease a collection's size by one.",
            initialSize - 1,
            collection.size());
        expectMissing((E) null);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/tests/go122-fail-first-gen-first.test

    -- expect --
    FAILURE "expected a proc but didn't have one"
    -- trace --
    Trace Go1.22
    EventBatch gen=1 m=0 time=0 size=5
    Frequency freq=15625000
    EventBatch gen=1 m=0 time=0 size=5
    GoCreate dt=0 new_g=1 new_stack=0 stack=0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 256 bytes
    - Viewed (0)
  4. src/runtime/testdata/testfds/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"io"
    	"log"
    	"os"
    )
    
    func main() {
    	f, err := os.OpenFile(os.Getenv("TEST_OUTPUT"), os.O_CREATE|os.O_RDWR, 0600)
    	if err != nil {
    		log.Fatalf("os.Open failed: %s", err)
    	}
    	defer f.Close()
    	b, err := io.ReadAll(os.Stdin)
    	if err != nil {
    		log.Fatalf("io.ReadAll(os.Stdin) failed: %s", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 642 bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/api/IsolatedAction.java

     * The absence of shared mutable state allows these actions to be safely executed in parallel as needed.
     *
     * <p><b>IMPORTANT:</b> As isolated action instances are recreated using Configuration Cache serialization, they must
     * adhere to the <a href="https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:requirements">same requirements</a>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:15:52 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/os/exec/lp_unix_test.go

    import (
    	"os"
    	"os/exec"
    	"testing"
    )
    
    func TestLookPathUnixEmptyPath(t *testing.T) {
    	// Not parallel: uses Chdir and Setenv.
    
    	tmp := t.TempDir()
    	chdir(t, tmp)
    
    	f, err := os.OpenFile("exec_me", os.O_CREATE|os.O_EXCL, 0700)
    	if err != nil {
    		t.Fatal("OpenFile failed: ", err)
    	}
    	err = f.Close()
    	if err != nil {
    		t.Fatal("Close failed: ", err)
    	}
    
    	t.Setenv("PATH", "")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 762 bytes
    - Viewed (0)
  7. src/cmd/go/internal/lockedfile/lockedfile.go

    }
    
    // Open is like os.Open, but returns a read-locked file.
    func Open(name string) (*File, error) {
    	return OpenFile(name, os.O_RDONLY, 0)
    }
    
    // Create is like os.Create, but returns a write-locked file.
    func Create(name string) (*File, error) {
    	return OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
    }
    
    // Edit creates the named file with mode 0666 (before umask),
    // but does not truncate existing contents.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 5.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_fuzz_mutator.txt

    	logFile *os.File
    )
    
    func TestMain(m *testing.M) {
    	flag.Parse()
    	var err error
    	logFile, err = os.OpenFile(*logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666)
    	if os.IsExist(err) {
    		*logPath += ".worker"
    		logFile, err = os.OpenFile(*logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666)
    	}
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	os.Exit(m.Run())
    }
    
    func FuzzA(f *testing.F) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. cmd/dynamic-timeouts.go

    	"time"
    )
    
    const (
    	dynamicTimeoutIncreaseThresholdPct = 0.33 // Upper threshold for failures in order to increase timeout
    	dynamicTimeoutDecreaseThresholdPct = 0.10 // Lower threshold for failures in order to decrease timeout
    	dynamicTimeoutLogSize              = 16
    	maxDuration                        = math.MaxInt64
    	maxDynamicTimeout                  = 24 * time.Hour // Never set timeout bigger than this.
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Aug 19 23:21:05 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/pack/pack.go

    	switch op {
    	case 'p':
    		ar = openArchive(os.Args[2], os.O_RDONLY, os.Args[3:])
    		ar.scan(ar.printContents)
    	case 'r':
    		ar = openArchive(os.Args[2], os.O_RDWR|os.O_CREATE, os.Args[3:])
    		ar.addFiles()
    	case 'c':
    		ar = openArchive(os.Args[2], os.O_RDWR|os.O_TRUNC|os.O_CREATE, os.Args[3:])
    		ar.addPkgdef()
    		ar.addFiles()
    	case 't':
    		ar = openArchive(os.Args[2], os.O_RDONLY, os.Args[3:])
    		ar.scan(ar.tableOfContents)
    	case 'x':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top