aboutsummaryrefslogtreecommitdiffstats
path: root/prog/expr_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <wp32pw@gmail.com>2024-03-08 17:24:27 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2024-03-08 16:36:20 +0000
commit96d142e71b8a8a5affdab6f1c033799510040cce (patch)
treeb8b8a6aec40c6eb6d624c894eda84c291a9de129 /prog/expr_test.go
parent0b3e125fda2e386091985b4b57231dd19341f64e (diff)
Revert "prog: fix resource leak during replaceArg() of union fields"
This reverts commit 6387f6b7d487e2a77d753ad28c1074e39c17c3ca.
Diffstat (limited to 'prog/expr_test.go')
-rw-r--r--prog/expr_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/prog/expr_test.go b/prog/expr_test.go
index adff50c6a..f6c8c8603 100644
--- a/prog/expr_test.go
+++ b/prog/expr_test.go
@@ -42,23 +42,6 @@ func TestGenerateConditionalFields(t *testing.T) {
}
}
-func TestConditionalResources(t *testing.T) {
- // Let's stress test the code and rely on various internal checks.
- target, rs, _ := initRandomTargetTest(t, "test", "64")
- ct := target.BuildChoiceTable(nil, map[*Syscall]bool{
- target.SyscallMap["test$create_cond_resource"]: true,
- target.SyscallMap["test$use_cond_resource"]: true,
- })
- iters := 500
- if testing.Short() {
- iters /= 10
- }
- for i := 0; i < iters; i++ {
- p := target.Generate(rs, 10, ct)
- p.Mutate(rs, 10, ct, nil, nil)
- }
-}
-
func TestMutateConditionalFields(t *testing.T) {
target, rs, _ := initRandomTargetTest(t, "test", "64")
ct := target.DefaultChoiceTable()