X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2FValaTest.vala;fp=tests%2FValaTest.vala;h=07d79a11c34ecc152a241026054d3ab99c295e84;hb=18c50f1d1a2447d92c483fc683b3a3dd33c2bc79;hp=ffe5785f020461814eb34f21e87ddd0807fbcfbc;hpb=fe2e2f186d7903f8572cebbf9e8ad5dfad20d0a9;p=app.Builder.js diff --git a/tests/ValaTest.vala b/tests/ValaTest.vala index ffe5785f0..07d79a11c 100644 --- a/tests/ValaTest.vala +++ b/tests/ValaTest.vala @@ -3,7 +3,31 @@ */ - + + +void diff(string original, string data) +{ + + FileUtils.set_contents("/tmp/test.out",data); + string[] spawn_args = {"diff", "-w" , "-u", original, "/tmp/test.out" }; + + + string[] spawn_env = Environ.get (); + int ls_status; + Process.spawn_sync ("/", + spawn_args, + spawn_env, + SpawnFlags.SEARCH_PATH, + null, + null, + null, + out ls_status); + + +} + + + int main (string[] args) { Gtk.init (ref args); //GtkClutter.init (ref args);