This is the first part of converting the project to use SPDX license identifiers instead using the verbose license text. The patches are semi-automated and I've went through manually to ensure no license changes were made. That said, I would welcome another pair of eyes, since I am only human. See https://github.com/libarchive/libarchive/issues/2298 --------- Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
25 lines
426 B
C
25 lines
426 B
C
/*-
|
|
* 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");
|
|
}
|
|
|