Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 164 for touched (0.19 sec)

  1. platforms/native/language-native/src/test/groovy/org/gradle/language/assembler/plugins/AssemblerPluginTest.groovy

            realizeComponents().exe.sources.asm.source.srcDirs*.name == ["d1", "d2"]
        }
    
        def "creates assemble tasks for each non-empty executable source set "() {
            when:
            touch("src/test/asm/dummy.s")
            touch("src/test/anotherOne/dummy.s")
            dsl {
                pluginManager.apply AssemblerPlugin
    
                model {
                    components {
                        test(NativeExecutableSpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/initialization/InternalGradleFailuresIntegrationTest.groovy

                }
            """
        }
    
        def "Error message due to unwritable build scope cache directory is not scary"() {
            given:
            def localGradleCache = file('.gradle')
            localGradleCache.touch()
    
            when:
            fails 'hello'
    
            then:
            localGradleCache.isFile()
            assertHasStartupFailure(failure, "Cache directory '${localGradleCache}' exists and is not a directory.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesFilesMiscIntegrationTest.groovy

            def reportsDir = dslDir.file('build/reports')
            reportsDir.createDir().file('my-report.pdf').touch()
            reportsDir.file('numbers.csv').touch()
    
            and: "A PDF report in a subdirectory of build/reports"
            reportsDir.createDir("metrics").file("scatterPlot.pdf").touch()
    
            when:
            succeeds('moveReports')
    
            then:
            def toArchiveDir = dslDir.file("build/toArchive")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/file/MicroBenchmarkPerformanceTest.groovy

        def "creating #number of files"() {
            expect:
            number.times {
                touch("src/test/dummy${it}.s")
            }
            where:
            number << [10, 100, 1000]
        }
    
        def touch(String filePath) {
            FileUtils.touch(project.file(filePath))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/GitAttributesGeneratorTest.groovy

    '''
            builder << '\n'
            builder << '''# These are Windows script files and should use crlf
    *.bat           text eol=crlf
    '''
            builder << '\n'
            builder << '''# Binary files should be left untouched
    *.jar           binary
    '''
            builder << '\n'
    
            return builder.toString()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 12:54:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/panicrace.go

    import (
    	"runtime"
    	"sync"
    )
    
    func init() {
    	register("PanicRace", PanicRace)
    }
    
    func PanicRace() {
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer func() {
    			wg.Done()
    			runtime.Gosched()
    		}()
    		panic("crash")
    	}()
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 22:42:48 UTC 2017
    - 414 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/testdata/libgo8/a.go

    func init() {
    	runtime.GOMAXPROCS(1)
    	go func() {
    		for {
    			atomic.StoreInt32(&started, 1)
    		}
    	}()
    }
    
    //export GoFunction8
    func GoFunction8() {
    	for atomic.LoadInt32(&started) == 0 {
    		runtime.Gosched()
    	}
    	os.Exit(0)
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 529 bytes
    - Viewed (0)
  8. src/runtime/race/testdata/waitgroup_test.go

    func TestRaceWaitGroupWrongWait(t *testing.T) {
    	c := make(chan bool, 2)
    	var x int
    	_ = x
    	var wg sync.WaitGroup
    	go func() {
    		wg.Add(1)
    		runtime.Gosched()
    		x = 1
    		wg.Done()
    		c <- true
    	}()
    	go func() {
    		wg.Add(1)
    		runtime.Gosched()
    		x = 2
    		wg.Done()
    		c <- true
    	}()
    	wg.Wait()
    	<-c
    	<-c
    }
    
    func TestRaceWaitGroupWrongAdd(t *testing.T) {
    	c := make(chan bool, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue9400/gccgo.go

    // do.  So this is not much of a test.
    
    var Baton int32
    
    func RewindAndSetgid() {
    	atomic.StoreInt32(&Baton, 1)
    	for atomic.LoadInt32(&Baton) != 0 {
    		runtime.Gosched()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 612 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/tsan4.go

    	"sync"
    )
    
    func main() {
    	var wg sync.WaitGroup
    	for i := 0; i < 10; i++ {
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			for i := 0; i < 100; i++ {
    				p := C.malloc(C.size_t(i * 10))
    				runtime.Gosched()
    				C.free(p)
    			}
    		}()
    	}
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 634 bytes
    - Viewed (0)
Back to top