Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 820 for testPipe (0.17 sec)

  1. src/runtime/testdata/testprogcgo/eintr.go

    func sendSomeSignals() {
    	done := make(chan struct{})
    	go func() {
    		spin()
    		close(done)
    	}()
    	winch()
    	<-done
    }
    
    // testPipe tests pipe operations.
    func testPipe(wg *sync.WaitGroup) {
    	r, w, err := os.Pipe()
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := syscall.SetNonblock(int(r.Fd()), false); err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  2. src/net/pipe_test.go

    // license that can be found in the LICENSE file.
    
    package net_test
    
    import (
    	"io"
    	"net"
    	"testing"
    	"time"
    
    	"golang.org/x/net/nettest"
    )
    
    func TestPipe(t *testing.T) {
    	nettest.TestConn(t, func() (c1, c2 net.Conn, stop func(), err error) {
    		c1, c2 = net.Pipe()
    		stop = func() {
    			c1.Close()
    			c2.Close()
    		}
    		return
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopySpecIntegrationSpec.groovy

        def "copying files to a directory with named pipes fails"() {
            def input = file("input.txt").createFile()
    
            def outputDirectory = file("output").createDir()
            def pipe = outputDirectory.file("testPipe").createNamedPipe()
    
            buildFile << """
                task copy(type: Copy) {
                    from '${input.name}'
                    into '${outputDirectory.name}'
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:45:30 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy

            stat.length == 0
            assertSameAccessType(stat, VIA_SYMLINK)
        }
    
        @Requires(UnitTestPreconditions.UnixDerivative)
        def "stats named pipes"() {
            def pipe = tmpDir.file("testPipe").createNamedPipe()
    
            when:
            accessor.stat(pipe)
            then:
            thrown(UncheckedIOException)
        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy

        @Issue("https://github.com/gradle/gradle/issues/2552")
        def "snapshotting named pipe fails"() {
            def rootDir = tmpDir.createDir("root")
            def pipe = rootDir.file("testPipe").createNamedPipe()
    
            when:
            directorySnapshotter.snapshot(rootDir.absolutePath, null, [:], unfilteredSubSnapshotsCollector)
    
            then:
            def ex = thrown(UncheckedIOException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            new TestFileHelper(this).tgzTo(tarFile, readOnly);
            return this;
        }
    
        public TestFile tbzTo(TestFile tarFile) {
            return tbzTo(tarFile, false);
        }
    
        public TestFile tbzTo(TestFile tarFile, boolean readOnly) {
            new TestFileHelper(this).tbzTo(tarFile, readOnly);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/testing/TestType.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.basics.testing
    
    import org.gradle.api.tasks.testing.Test
    
    
    enum class TestType(val prefix: String, val executers: List<String>) {
        INTEGRATION("integ", listOf("embedded", "forking", "noDaemon", "parallel", "configCache", "isolatedProjects")),
        CROSSVERSION("crossVersion", listOf("embedded", "forking"))
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/api/plugins/JvmTestSuitePluginIntegrationTest.groovy

                            testType = TestSuiteType.INTEGRATION_TEST
    
                            dependencies {
                                implementation project()
                            }
                        }
                    }
                }
                """.stripIndent()
    
            expect:
            succeeds "outgoingVariants"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/publish/DefaultPublishArtifactTest.groovy

        def "init"() {
            given:
            def task1 = Mock(Task)
            def task2 = Mock(Task)
    
            when:
            def publishArtifact = new DefaultPublishArtifact(testName, testExt, testType,
                    testClassifier, date, testFile, task1, task2)
            then:
            publishArtifact.buildDependencies.getDependencies(null) == [task1, task2] as Set
            assertCommonPropertiesAreSet(publishArtifact, true)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 24 15:34:51 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/publish/AbstractPublishArtifactTest.groovy

        }
    
        protected void assertCommonPropertiesAreSet(PublishArtifact artifact, boolean shouldHaveClassifier) {
            assert testName == artifact.name
            assert testType == artifact.type
            assert testExt == artifact.extension
            assert testFile == artifact.file
            if (shouldHaveClassifier) {
                assert testClassifier == artifact.classifier
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 11:02:13 UTC 2016
    - 1.9K bytes
    - Viewed (0)
Back to top