src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 04:42:17 +0000 (12:42 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 04:42:17 +0000 (12:42 +0800)
src/Palete/ValaSource.vala

index 5a0a861..bd812c5 100644 (file)
@@ -225,8 +225,8 @@ namespace Palete {
                        } else {
                            args += pr.firstBuildModule();
                        }
-                       args += "--output";
-                       args += "/tmp/testrun";
+                       //args += "--output";
+                       //args += "/tmp/testrun";
                        
                        // assume code is in home...
                        try {
@@ -366,6 +366,11 @@ namespace Palete {
                public void runResult(int res, string output, string stderr)
                {
                        this.compiler = null;
+                       if (!GLib.FileUtils.test("/tmp/testrun", GLib.FileTest.EXISTS)) {
+                               print("Missing outfile\n");
+                               return;
+                       }
+                       
                    print("OUT: %s\n\n----\nERR:%s", output, stderr);
             var exec = new Spawn("/tmp", { "/tmp/testrun" });
             exec.detach = true;