@@ -33,13 +33,15 @@ func testSysconfGoCgo(t *testing.T, tc testCase) {
33
33
34
34
goVal , goErr := sysconf .Sysconf (tc .goVar )
35
35
if goErr != nil {
36
- t .Fatalf ("Sysconf(%s/%d): %v" , tc .name , tc .goVar , goErr )
36
+ t .Errorf ("Sysconf(%s/%d): %v" , tc .name , tc .goVar , goErr )
37
+ return
37
38
}
38
39
t .Logf ("%s = %v" , tc .name , goVal )
39
40
40
41
cVal , cErr := C .sysconf (tc .cVar )
41
42
if cErr != nil {
42
- t .Fatalf ("C.sysconf(%s/%d): %v" , tc .name , tc .cVar , cErr )
43
+ t .Errorf ("C.sysconf(%s/%d): %v" , tc .name , tc .cVar , cErr )
44
+ return
43
45
}
44
46
45
47
if goVal != int64 (cVal ) {
@@ -56,11 +58,12 @@ func testSysconfGoCgoInvalid(t *testing.T, tc testCase) {
56
58
57
59
_ , goErr := sysconf .Sysconf (tc .goVar )
58
60
if goErr == nil {
59
- t .Fatalf ("Sysconf(%s/%d) unexpectedly returned without error" , tc .name , tc .goVar )
61
+ t .Errorf ("Sysconf(%s/%d) unexpectedly returned without error" , tc .name , tc .goVar )
62
+ return
60
63
}
61
64
62
65
_ , cErr := C .sysconf (tc .cVar )
63
66
if cErr == nil {
64
- t .Fatalf ("C.sysconf(%s/%d) unexpectedly returned without error" , tc .name , tc .goVar )
67
+ t .Errorf ("C.sysconf(%s/%d) unexpectedly returned without error" , tc .name , tc .goVar )
65
68
}
66
69
}
0 commit comments