Skip to content

Commit

Permalink
Fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Nov 27, 2023
1 parent d000f3c commit 9fb2510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,10 @@ if(AVIF_BUILD_APPS)
# 'are_images_equal' is used to make sure inputs/outputs are unchanged.
add_executable(are_images_equal gtest/are_images_equal.cc)
target_link_libraries(are_images_equal aviftest_helpers)
set_tests_properties(test_cmd PROPERTIES ENVIRONMENT "AVIF_TEST_UTF8=1")
if(MINGW)
if("$ENV{MSYSTEM}" MATCHES "(MINGW32|MINGW64)")
set_tests_properties(test_cmd PROPERTIES ENVIRONMENT "AVIF_TEST_NO_UTF8=1")
set_tests_properties(test_cmd PROPERTIES ENVIRONMENT "AVIF_TEST_UTF8=0")
else()
target_link_options(are_images_equal PRIVATE -municode)
endif()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pushd ${TMP_DIR}
"${AVIFENC}" -s 8 "${INPUT_Y4M}" -o "${ENCODED_FILE}"
"${AVIFDEC}" "${ENCODED_FILE}" "${DECODED_FILE}"
"${ARE_IMAGES_EQUAL}" "${INPUT_Y4M}" "${DECODED_FILE}" 0 && exit 1
if [[ -z "${AVIF_TEST_NO_UTF8}" ]]; then
if [[ "${AVIF_TEST_UTF8}" == "1" ]]; then
cp ${INPUT_Y4M} ${INPUT_UTF8_Y4M}
"${AVIFENC}" -s 8 "${INPUT_UTF8_Y4M}" -o "${ENCODED_UTF8_FILE}"
"${AVIFDEC}" "${ENCODED_UTF8_FILE}" "${DECODED_UTF8_FILE}"
Expand Down

0 comments on commit 9fb2510

Please sign in to comment.