You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vo...@apache.org on 2018/06/23 12:55:11 UTC

[3/3] calcite git commit: [CALCITE-2369] Fix OsAdapterTest failure on windows (Sergey Nuyanzin)

[CALCITE-2369] Fix OsAdapterTest failure on windows (Sergey Nuyanzin)

- Put testDu and testDuFilterSortLimit to ignore in case of Windows

Close apache/calcite#737


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

Branch: refs/heads/master
Commit: 0db06f780e9276424467690c703004df9f012314
Parents: 242e12f
Author: snuyanzin <sn...@gmail.com>
Authored: Mon Jun 18 13:47:04 2018 +0300
Committer: Volodymyr Vysotskyi <vv...@gmail.com>
Committed: Sat Jun 23 15:22:36 2018 +0300

----------------------------------------------------------------------
 .../test/java/org/apache/calcite/adapter/os/OsAdapterTest.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/0db06f78/plus/src/test/java/org/apache/calcite/adapter/os/OsAdapterTest.java
----------------------------------------------------------------------
diff --git a/plus/src/test/java/org/apache/calcite/adapter/os/OsAdapterTest.java b/plus/src/test/java/org/apache/calcite/adapter/os/OsAdapterTest.java
index 4793f83..1216520 100644
--- a/plus/src/test/java/org/apache/calcite/adapter/os/OsAdapterTest.java
+++ b/plus/src/test/java/org/apache/calcite/adapter/os/OsAdapterTest.java
@@ -90,6 +90,8 @@ public class OsAdapterTest {
   }
 
   @Test public void testDu() {
+    Assume.assumeFalse("Skip: the 'du' table does not work on Windows",
+        isWindows());
     sql("select * from du")
         .returns(
             new Function<ResultSet, Void>() {
@@ -108,6 +110,8 @@ public class OsAdapterTest {
   }
 
   @Test public void testDuFilterSortLimit() {
+    Assume.assumeFalse("Skip: the 'du' table does not work on Windows",
+        isWindows());
     sql("select * from du where path like '%/src/test/java/%'\n"
         + "order by 1 limit 2")
         .returns(