/
githubmirror
/
libarchive
Обзор
Документация
Войти
/
githubmirror
/
libarchive
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
unzip/test/test_C.c
26 строк
573 B
Tobias Stoeckmann
Skip zlib tests if support is missing
03 июн 2025, 18:27
03 июн 2025, 18:27
ac66e0b
Код
Авторство
О чём код?
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2023 Adrian Vovk * All rights reserved. */ #include "test.h" /* Test C arg - match case-insensitive */ DEFINE_TEST(test_C) { #ifdef HAVE_LIBZ const char *reffile = "test_basic.zip"; int r; extract_reference_file(reffile); r = systemf("%s -C %s test_basic/caps >test.out 2>test.err", testprog, reffile); assertEqualInt(0, r); assertNonEmptyFile("test.out"); assertEmptyFile("test.err"); assertTextFileContents("contents CAPS\n", "test_basic/CAPS"); #else skipping("zlib not available"); #endif }