summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bits/bitrev_test.c4
-rw-r--r--tests/bits/bitrev_test.ok2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/bits/bitrev_test.c b/tests/bits/bitrev_test.c
index 08f08278..b96241c5 100644
--- a/tests/bits/bitrev_test.c
+++ b/tests/bits/bitrev_test.c
@@ -297,7 +297,9 @@ int main(int argc, char **argv)
sh_chk(in1, ARRAY_SIZE(in1), offs, true);
sh_chk(in1, ARRAY_SIZE(in1), offs, false);
sh_chk(in2, ARRAY_SIZE(in2), offs, true);
- sh_chk(in2, ARRAY_SIZE(in2), offs, false);
+ /* in2 is too short to shift left 12 nibbles */
+ if (offs < 12)
+ sh_chk(in2, ARRAY_SIZE(in2), offs, false);
}
return 0;
}
diff --git a/tests/bits/bitrev_test.ok b/tests/bits/bitrev_test.ok
index 9fbb4d9c..e6f52af6 100644
--- a/tests/bits/bitrev_test.ok
+++ b/tests/bits/bitrev_test.ok
@@ -156,5 +156,3 @@ running nibble tests...
OUT: 00dcafedeadb
[6] R IN: b00bbabeface, nibble 12:
OUT: 0b00bbabefac
-[6] L IN: b00bbabeface, nibble 12:
- OUT: 00bbabeface0