/
githubmirror
/
libarchive
Обзор
Документация
Войти
/
githubmirror
/
libarchive
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
cat/test/test_empty_zstd.c
23 строки
500 B
Emil Velikov
Convert the tools and respective tests to SPDX (#2317)
13 окт 2024, 06:54
Не верифицирован
13 окт 2024, 06:54
6287b99
Код
Авторство
О чём код?
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2017 Sean Purcell * All rights reserved. */ #include "test.h" DEFINE_TEST(test_empty_zstd) { const char *reffile = "test_empty.zst"; int f; extract_reference_file(reffile); f = systemf("%s %s >test.out 2>test.err", testprog, reffile); if (f == 0 || canZstd()) { assertEqualInt(0, f); assertEmptyFile("test.out"); assertEmptyFile("test.err"); } else { skipping("It seems zstd is not supported on this platform"); } }