/
githubmirror
/
libarchive
Обзор
Документация
Войти
/
githubmirror
/
libarchive
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
cat/test/test_stdin.c
23 строки
426 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" #if !defined(_WIN32) || defined(__CYGWIN__) #define DEV_NULL "/dev/null" #else #define DEV_NULL "NUL" #endif DEFINE_TEST(test_stdin) { int f; f = systemf("%s <%s >test.out 2>test.err", testprog, DEV_NULL); assertEqualInt(0, f); assertEmptyFile("test.out"); assertEmptyFile("test.err"); }