The problem is discovered on Mac OS-X. But I tried to list the root causes that could also affect non-mac-os-x platforms:
Line 66: assertEquals(tmp, new Path(System.getProperty("java.io.tmpdir")). makeQualified(localFs).toString());
expected = "file:/[private/]tmp/hadoop-htang/map...", actual = "file:/tmp/hadoop-htang/map...".
Root cause: on Mac OS-X, /tmp is symlink to /private/tmp. The test probably would fail on normal unix systems if /tmp is also symlinked.
Line 160: assertTrue("LD doesnt contain pwd", System.getenv("LD_LIBRARY_PATH").contains(pwd));
Root cause: the environment variable for dynamic library on Mac OS-X is DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH