Skipping the test under Windows.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2955 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
c7cd3c3233
commit
d99f4e276b
|
@ -1,6 +1,5 @@
|
|||
package org.eclipse.jetty.util;
|
||||
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
|
@ -10,9 +9,9 @@ import java.util.concurrent.LinkedBlockingQueue;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import org.eclipse.jetty.util.Scanner.Notification;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assume;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -83,9 +82,16 @@ public class ScannerTest
|
|||
}
|
||||
}
|
||||
|
||||
private void assumeNotWindows()
|
||||
{
|
||||
Assume.assumeTrue(!System.getProperty("os.name").toLowerCase().contains("windows"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddedChangeRemove() throws Exception
|
||||
{
|
||||
assumeNotWindows();
|
||||
|
||||
touch("a0");
|
||||
|
||||
// takes 2s to notice a0 and check that it is stable
|
||||
|
@ -177,6 +183,8 @@ public class ScannerTest
|
|||
@Test
|
||||
public void testSizeChange() throws Exception
|
||||
{
|
||||
assumeNotWindows();
|
||||
|
||||
touch("tsc0");
|
||||
|
||||
// takes 2s to notice tsc0 and check that it is stable. This syncs us with the scan
|
||||
|
|
Loading…
Reference in New Issue