1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2014 Mike Kazantsev 5 * All rights reserved. 6 */ 7 #include "test.h" 8 DEFINE_TEST(test_error_mixed)9DEFINE_TEST(test_error_mixed) 10 { 11 const char *reffile1 = "test_expand.plain"; 12 const char *reffile2 = "test_expand.error"; 13 const char *reffile3 = "test_expand.Z"; 14 15 assertFileNotExists(reffile2); 16 extract_reference_file(reffile1); 17 extract_reference_file(reffile3); 18 assert(0 != systemf("%s %s %s %s >test.out 2>test.err", 19 testprog, reffile1, reffile2, reffile3)); 20 21 assertTextFileContents( 22 "contents of test_expand.plain.\n" 23 "contents of test_expand.Z.\n", "test.out"); 24 assertNonEmptyFile("test.err"); 25 } 26