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 9 DEFINE_TEST(test_expand_mixed) 10 { 11 const char *reffile1 = "test_expand.Z"; 12 const char *reffile2 = "test_expand.plain"; 13 14 extract_reference_file(reffile1); 15 extract_reference_file(reffile2); 16 assertEqualInt(0, systemf("%s %s %s >test.out 2>test.err", 17 testprog, reffile1, reffile2)); 18 19 assertTextFileContents( 20 "contents of test_expand.Z.\n" 21 "contents of test_expand.plain.\n", "test.out"); 22 assertEmptyFile("test.err"); 23 } 24