aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-floatingpoint.c2
-rwxr-xr-xtest/test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test-floatingpoint.c b/test/test-floatingpoint.c
index 3a699595..66d84411 100644
--- a/test/test-floatingpoint.c
+++ b/test/test-floatingpoint.c
@@ -15,7 +15,7 @@ int main(void) {
while (__AFL_LOOP(INT_MAX)) {
int len = __AFL_FUZZ_TESTCASE_LEN;
- if (len != sizeof(float)) return 1;
+ if (len < sizeof(float)) return 1;
/* 15 + 1/2 = 15.5 */
/* 15 + 1/2 + 1/8 = 15.625 */
diff --git a/test/test.sh b/test/test.sh
index 437a5113..dea9134f 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -389,7 +389,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
CODE=1
}
rm -f test-compcov.compcov test.out
- AFL_LLVM_INSTRUMENT=AFL AFL_LLVM_LAF_SPLIT_FLOATS=1 ../afl-clang-fast -o test-floatingpoint test-floatingpoint.c >errors
+ AFL_LLVM_INSTRUMENT=AFL AFL_LLVM_LAF_SPLIT_FLOATS=1 ../afl-clang-fast -o test-floatingpoint test-floatingpoint.c >errors 2>&1
test -e test-floatingpoint && {
mkdir -p in
echo ZZZZ > in/in