From 2fc5827b0bc1a119e15802925c63a40adbbf4b7d Mon Sep 17 00:00:00 2001 From: Jou Ho Date: Thu, 12 Dec 2024 01:04:54 +0000 Subject: [PATCH] fix profraw gen --- tests/fuzz/runFuzzTest.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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