aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-05 12:14:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-05 14:01:52 +0200
commite42fa3fd020db0a54d0e3ecd8300a77e57fc08fd (patch)
treeb02e4e95e80c7a4a16c9bdcfab5c829e2be31a00 /sys/test
parent1905d7c090a13a8b94e5d19a5388104f2d7693fd (diff)
prog: refactor hints tests
The way the tests fabricate types dynamically creates problems during any non-trivial changes to prog package. Use existing types from descriptions instead.
Diffstat (limited to 'sys/test')
-rw-r--r--sys/test/test.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/test/test.txt b/sys/test/test.txt
index 68eb4f8df..ac2612768 100644
--- a/sys/test/test.txt
+++ b/sys/test/test.txt
@@ -725,8 +725,17 @@ syz_use_missing {
# Hints tests.
+test$hint_int(a0 ptr[in, hint_ints])
test$hint_data(a0 ptr[in, array[int8]])
+hint_ints {
+ int1_0 int8
+ int2_0 int16
+ int4_0 int32
+ int8_0 int64
+ int2_12 int16:12
+}
+
# Mutation tests.
mutate0()