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>
26 lines
653 B
C
26 lines
653 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2014 Mike Kazantsev
|
|
* All rights reserved.
|
|
*/
|
|
#include "test.h"
|
|
|
|
DEFINE_TEST(test_error_mixed)
|
|
{
|
|
const char *reffile1 = "test_expand.plain";
|
|
const char *reffile2 = "test_expand.error";
|
|
const char *reffile3 = "test_expand.Z";
|
|
|
|
assertFileNotExists(reffile2);
|
|
extract_reference_file(reffile1);
|
|
extract_reference_file(reffile3);
|
|
assert(0 != systemf("%s %s %s %s >test.out 2>test.err",
|
|
testprog, reffile1, reffile2, reffile3));
|
|
|
|
assertTextFileContents(
|
|
"contents of test_expand.plain.\n"
|
|
"contents of test_expand.Z.\n", "test.out");
|
|
assertNonEmptyFile("test.err");
|
|
}
|