added a tester code

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17019 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-04-10 05:48:49 +00:00
1 parent bd4fccf804
commit 4fe546feeb
2 files changed
+26 -2

No files matched your search

@@ -0,0 +1,20 @@
package hudson.os;
import hudson.remoting.Callable;
import hudson.util.StreamTaskListener;
import java.io.FileOutputStream;
/**
* @author Kohsuke Kawaguchi
*/
public class SUTester {
public static void main(String[] args) throws Throwable {
SU.execute(new StreamTaskListener(System.out),null,null,new Callable<Object, Throwable>() {
public Object call() throws Throwable {
new FileOutputStream("/tmp/x").close();
return null;
}
});
}
}