You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2017/05/12 06:24:00 UTC

[3/3] flink git commit: [FLINK-6561] Disable glob test on Windows

[FLINK-6561] Disable glob test on Windows


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/f3ce0885
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/f3ce0885
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/f3ce0885

Branch: refs/heads/release-1.3
Commit: f3ce0885fc09b3b6853e8f662a15ca3a3c4b26e4
Parents: f0ff504
Author: zentol <ch...@apache.org>
Authored: Thu May 11 21:24:02 2017 +0200
Committer: zentol <ch...@apache.org>
Committed: Thu May 11 21:54:33 2017 +0200

----------------------------------------------------------------------
 .../org/apache/flink/api/common/io/GlobFilePathFilterTest.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/f3ce0885/flink-core/src/test/java/org/apache/flink/api/common/io/GlobFilePathFilterTest.java
----------------------------------------------------------------------
diff --git a/flink-core/src/test/java/org/apache/flink/api/common/io/GlobFilePathFilterTest.java b/flink-core/src/test/java/org/apache/flink/api/common/io/GlobFilePathFilterTest.java
index c9f8da4..bcdb5c3 100644
--- a/flink-core/src/test/java/org/apache/flink/api/common/io/GlobFilePathFilterTest.java
+++ b/flink-core/src/test/java/org/apache/flink/api/common/io/GlobFilePathFilterTest.java
@@ -19,6 +19,8 @@ package org.apache.flink.api.common.io;
 
 import org.apache.flink.core.fs.Path;
 import org.apache.flink.core.testutils.CommonTestUtils;
+import org.apache.flink.util.OperatingSystem;
+import org.junit.Assume;
 import org.junit.Test;
 
 import java.io.IOException;
@@ -110,6 +112,8 @@ public class GlobFilePathFilterTest {
 
 	@Test
 	public void testExcludeFilenameWithStart() {
+		Assume.assumeTrue("Windows does not allow asterisks in file names.", !OperatingSystem.isWindows());
+
 		GlobFilePathFilter matcher = new GlobFilePathFilter(
 			Collections.singletonList("**"),
 			Collections.singletonList("\\*"));