diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-13 13:49:08 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-17 11:39:14 +0100 |
| commit | 019cf5f2356fbadb904bb39993ec9e3adb1999c5 (patch) | |
| tree | a799d25a976c0f142aabcfb2c2f9d3e922532f3d /prog/hints_test.go | |
| parent | 9150b3e5442f9e9ebc53ef5d5a2cd00f01e6f118 (diff) | |
sys: move test syscalls to a separate target
We have them in linux solely for historical reasons.
Fixes #462
Diffstat (limited to 'prog/hints_test.go')
| -rw-r--r-- | prog/hints_test.go | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/prog/hints_test.go b/prog/hints_test.go index 59b90d06d..904d36500 100644 --- a/prog/hints_test.go +++ b/prog/hints_test.go @@ -394,7 +394,7 @@ func extractValues(c *Call) map[uint64]bool { } func TestHintsData(t *testing.T) { - t.Parallel() + target := initTargetTest(t, "test", "64") type Test struct { in string comps CompMap @@ -407,20 +407,7 @@ func TestHintsData(t *testing.T) { out: []string{"0810000000131415"}, }, } - target, err := GetTarget("linux", "amd64") - if err != nil { - t.Fatal(err) - } - var call *Syscall - for _, c := range target.Syscalls { - if c.Name == "syz_test$hint_data" { - call = c - break - } - } - if call == nil { - t.Fatalf("can't find syz_test$hint_data") - } + call := target.SyscallMap["syz_test$hint_data"] for _, test := range tests { input, err := hex.DecodeString(test.in) if err != nil { |
