[jruby-joni] 145/223: Add InterruptedException awareness to the tests.

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:22:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit 1058b091c393d3671ad9bbd643127dcb095e54e1
Author: Jordan Sissel <jls at semicomplete.com>
Date:   Wed May 1 11:46:18 2013 -0700

    Add InterruptedException awareness to the tests.
---
 test/org/joni/test/Test.java            | 6 ++++--
 test/org/joni/test/TestA.java           | 2 +-
 test/org/joni/test/TestC.java           | 2 +-
 test/org/joni/test/TestCornerCases.java | 2 +-
 test/org/joni/test/TestCrnl.java        | 2 +-
 test/org/joni/test/TestLookBehind.java  | 2 +-
 test/org/joni/test/TestNSU8.java        | 2 +-
 test/org/joni/test/TestU.java           | 2 +-
 test/org/joni/test/TestU8.java          | 2 +-
 9 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/test/org/joni/test/Test.java b/test/org/joni/test/Test.java
index dda5c3e..1010446 100644
--- a/test/org/joni/test/Test.java
+++ b/test/org/joni/test/Test.java
@@ -192,10 +192,12 @@ public abstract class Test {
         Config.log.println("RESULT   SUCC: " + nsucc + ",  FAIL: " + nfail + ",  ERROR: " + nerror + " Test: " + getClass().getSimpleName() + ", Encoding: " + encoding());
     }
 
-    public abstract void test();
+    public abstract void test() throws InterruptedException;
 
     public final void run() {
-        test();
+        try {
+          test();
+        } catch (InterruptedException ie) { }
         printResults();
     }
 
diff --git a/test/org/joni/test/TestA.java b/test/org/joni/test/TestA.java
index f73153a..aee59ae 100644
--- a/test/org/joni/test/TestA.java
+++ b/test/org/joni/test/TestA.java
@@ -42,7 +42,7 @@ public class TestA extends Test {
         return Syntax.DEFAULT;
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         x2s("", "", 0, 0);
         x2s("^", "", 0, 0);
         x2s("$", "", 0, 0);
diff --git a/test/org/joni/test/TestC.java b/test/org/joni/test/TestC.java
index 9af3941..619ef30 100644
--- a/test/org/joni/test/TestC.java
+++ b/test/org/joni/test/TestC.java
@@ -43,7 +43,7 @@ public class TestC extends Test {
         return Syntax.DEFAULT;
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         x2s("", "", 0, 0);
         x2s("^", "", 0, 0);
         x2s("$", "", 0, 0);
diff --git a/test/org/joni/test/TestCornerCases.java b/test/org/joni/test/TestCornerCases.java
index 717766d..d8099d5 100644
--- a/test/org/joni/test/TestCornerCases.java
+++ b/test/org/joni/test/TestCornerCases.java
@@ -44,7 +44,7 @@ public class TestCornerCases extends Test {
         return Syntax.DEFAULT;
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         byte[] reg = "l.".getBytes();
         byte[] str = "hello,lo".getBytes();
 
diff --git a/test/org/joni/test/TestCrnl.java b/test/org/joni/test/TestCrnl.java
index 9a8c65c..de8b984 100644
--- a/test/org/joni/test/TestCrnl.java
+++ b/test/org/joni/test/TestCrnl.java
@@ -43,7 +43,7 @@ public class TestCrnl extends Test {
         return Syntax.DEFAULT;
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         x2s("",        "\r\n",        0,  0);
         x2s(".",       "\r\n",        0,  1);
         ns("..",      "\r\n");
diff --git a/test/org/joni/test/TestLookBehind.java b/test/org/joni/test/TestLookBehind.java
index 9ae4379..fa2d279 100644
--- a/test/org/joni/test/TestLookBehind.java
+++ b/test/org/joni/test/TestLookBehind.java
@@ -43,7 +43,7 @@ public class TestLookBehind extends Test {
 	}
 
 	@Override
-	public void test() {
+	public void test() throws InterruptedException {
 		x2s("(?<=a).*b", "aab", 1, 3);
 	}
 
diff --git a/test/org/joni/test/TestNSU8.java b/test/org/joni/test/TestNSU8.java
index ec4ed2d..1189776 100644
--- a/test/org/joni/test/TestNSU8.java
+++ b/test/org/joni/test/TestNSU8.java
@@ -42,7 +42,7 @@ public class TestNSU8 extends Test {
         return Syntax.DEFAULT;
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         xx("([^\\[\\]]+)".getBytes(), new byte[]{(byte)240, (byte)32, (byte)32, (byte)32, (byte)32}, 0, 5, 1, false);
         xx("([^\\[\\]]+)".getBytes(), new byte[]{(byte)240, (byte)32, (byte)32, (byte)32}, 0, 4, 1, false);
         xx("([^\\[\\]]+)".getBytes(), new byte[]{(byte)240, (byte)32, (byte)32}, 0, 3, 1, false);
diff --git a/test/org/joni/test/TestU.java b/test/org/joni/test/TestU.java
index eb4a2a7..ee1ed76 100644
--- a/test/org/joni/test/TestU.java
+++ b/test/org/joni/test/TestU.java
@@ -77,7 +77,7 @@ public class TestU extends Test {
         return ulen(bytes);
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         x2s("\000\000", "\000\000", 0, 0);
         x2s("\000^\000\000", "\000\000", 0, 0);
         x2s("\000$\000\000", "\000\000", 0, 0);
diff --git a/test/org/joni/test/TestU8.java b/test/org/joni/test/TestU8.java
index c922401..2479e74 100644
--- a/test/org/joni/test/TestU8.java
+++ b/test/org/joni/test/TestU8.java
@@ -42,7 +42,7 @@ public class TestU8 extends Test {
         return Syntax.DEFAULT;
     }
 
-    public void test() {
+    public void test() throws InterruptedException {
         xx("^\\d\\d\\d-".getBytes(), new byte []{-30, -126, -84, 48, 45}, 0, 0, 0, true);
         x2s("x{2}", "xx", 0, 2, Option.IGNORECASE);
         x2s("x{2}", "XX", 0, 2, Option.IGNORECASE);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list