diff --git a/tests/fuzz/runFuzzTest.sh b/tests/fuzz/runFuzzTest.sh index dd930fff3c3..5f5fa81d5de 100755 --- a/tests/fuzz/runFuzzTest.sh +++ b/tests/fuzz/runFuzzTest.sh @@ -51,8 +51,6 @@ GLOBAL_OVERRIDES="${S2N_ROOT}/build/lib/libglobal_overrides.so" FUZZCOV_SOURCES="${S2N_ROOT}/api ${S2N_ROOT}/bin ${S2N_ROOT}/crypto ${S2N_ROOT}/error ${S2N_ROOT}/stuffer ${S2N_ROOT}/tls ${S2N_ROOT}/utils" -LLVM_PROFILE_FILE="./profiles/${TEST_NAME}/${TEST_NAME}.%p.profraw" - # Use LD_PRELOAD_ to prevent symbol lookup errors in commands like mkdir. if [ -e $TEST_SPECIFIC_OVERRIDES ]; then @@ -84,6 +82,7 @@ cp -r ./corpus/${TEST_NAME}/. "${TEMP_CORPUS_DIR}" # Run fuzz test executable and store results to an output file env LD_PRELOAD="$LD_PRELOAD_" \ +LLVM_PROFILE_FILE="./profiles/${TEST_NAME}/${TEST_NAME}.%p.profraw" \ ${S2N_ROOT}/build/bin/${TEST_NAME} ${LIBFUZZER_ARGS} ${TEMP_CORPUS_DIR} \ > ${TEST_NAME}_output.txt 2>&1 || ACTUAL_TEST_FAILURE=1