ソースを参照

Fix core test failrues

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/HADOOP-4687/core@780977 13f79535-47bb-0310-9956-ffa450edef68
Giridharan Kesavan 16 年 前
コミット
244380a885

+ 2 - 0
build.xml

@@ -46,6 +46,7 @@
   <property name="build.dir" value="${basedir}/build"/>
   <property name="build.classes" value="${build.dir}/classes"/>
   <property name="build.src" value="${build.dir}/src"/>
+  <property name="build.webapps" value="${build.dir}/webapps"/>
 
   <!-- convert spaces to _ so that mac os doesn't break things -->
   <exec executable="sed" inputstring="${os.name}" 
@@ -227,6 +228,7 @@
     <mkdir dir="${build.dir}"/>
     <mkdir dir="${build.classes}"/>
     <mkdir dir="${build.src}"/>
+    <mkdir dir="${build.webapps}"/>
  
     <mkdir dir="${test.build.dir}"/>
     <mkdir dir="${test.build.classes}"/>

+ 1 - 1
src/test/core/org/apache/hadoop/http/TestGlobalFilter.java

@@ -101,7 +101,7 @@ public class TestGlobalFilter extends junit.framework.TestCase {
     //start a http server with CountingFilter
     conf.set(HttpServer.FILTER_INITIALIZER_PROPERTY,
         RecordingFilter.Initializer.class.getName());
-    HttpServer http = new HttpServer("datanode", "localhost", 0, true, conf);
+    HttpServer http = new HttpServer("..", "localhost", 0, true, conf);
     http.start();
 
     final String fsckURL = "/fsck";

+ 1 - 1
src/test/core/org/apache/hadoop/http/TestServletFilter.java

@@ -99,7 +99,7 @@ public class TestServletFilter extends junit.framework.TestCase {
     //start a http server with CountingFilter
     conf.set(HttpServer.FILTER_INITIALIZER_PROPERTY,
         SimpleFilter.Initializer.class.getName());
-    HttpServer http = new HttpServer("datanode", "localhost", 0, true, conf);
+    HttpServer http = new HttpServer("..", "localhost", 0, true, conf);
     http.start();
 
     final String fsckURL = "/fsck";