| 1 |
From: Mathias Gibbens <[email protected]> |
| 2 |
Description: Delete three tests that depend on the `openSharedLib()` function, which is only defined during amd64 builds. |
| 3 |
Forwarded: not-needed |
| 4 |
diff --git a/internal/emit_cgo_test.go b/internal/emit_cgo_test.go |
| 5 |
deleted file mode 100644 |
| 6 |
index 7849649..0000000 |
| 7 |
--- a/internal/emit_cgo_test.go |
| 8 |
+++ /dev/null |
| 9 |
@@ -1,29 +0,0 @@ |
| 10 |
-//go:build !no_antithesis_sdk && linux && amd64 && cgo |
| 11 |
- |
| 12 |
-package internal |
| 13 |
- |
| 14 |
-import ( |
| 15 |
- "os" |
| 16 |
- "testing" |
| 17 |
-) |
| 18 |
- |
| 19 |
-func TestVoidstarHandlerErr1(t *testing.T) { |
| 20 |
- _, err := openSharedLib("path-not-exists") |
| 21 |
- if err == nil { |
| 22 |
- panic("Should failed to load library") |
| 23 |
- } |
| 24 |
-} |
| 25 |
- |
| 26 |
-func TestVoidstarHandlerErr2(t *testing.T) { |
| 27 |
- _, err := openSharedLib(os.Args[0]) |
| 28 |
- if err == nil { |
| 29 |
- panic("Should failed to load library") |
| 30 |
- } |
| 31 |
-} |
| 32 |
- |
| 33 |
-func TestVoidstarHandlerErr3(t *testing.T) { |
| 34 |
- _, err := openSharedLib("libc.so.6") |
| 35 |
- if err == nil { |
| 36 |
- panic("Should failed to load library") |
| 37 |
- } |
| 38 |
-} |