diff options
Diffstat (limited to 'pkg/csource/csource_test.go')
| -rw-r--r-- | pkg/csource/csource_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index 64f92d31b..64fd1e936 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -43,6 +43,14 @@ func TestGenerate(t *testing.T) { if _, err := exec.LookPath(sysTarget.CCompiler); err != nil { t.Skipf("no target compiler %v", sysTarget.CCompiler) } + bin, err := Build(target, []byte(` +#include <stdio.h> +int main() { printf("Hello, World!\n"); } +`)) + if err != nil { + t.Skipf("target compiler is broken: %v", err) + } + os.Remove(bin) full := !checked[target.OS] checked[target.OS] = true t.Parallel() |
