aboutsummaryrefslogtreecommitdiff
path: root/adapters/gtest
diff options
context:
space:
mode:
Diffstat (limited to 'adapters/gtest')
-rw-r--r--adapters/gtest/executable.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/adapters/gtest/executable.go b/adapters/gtest/executable.go
index 80560c5..bb47d9c 100644
--- a/adapters/gtest/executable.go
+++ b/adapters/gtest/executable.go
@@ -1,18 +1,20 @@
package gtest
import (
- "os"
+ "context"
"errors"
- "time"
+ "fmt"
"io/ioutil"
"log"
+ "os"
"os/exec"
"path"
"reflect"
"sort"
- "context"
+ "time"
- "golang.flu0r1ne.net/planr")
+ "golang.flu0r1ne.net/planr"
+)
type executable struct {
exeNm string
@@ -159,7 +161,10 @@ func runGtest(exe string, tc planr.TestCase, builddir string) planr.TestResult {
results, err := decodeResults(f)
if err != nil {
- log.Fatalf("Could not collect results from %s: %v", exe, err)
+ result.Status = planr.COMPILATION_FAILURE
+ result.DebugOutput += fmt.Sprintf("Could not collect results from %s: %v\n\nDid you mistakenly create a main?\n", exe, err)
+
+ return result
}
if len(results) < 1 {