1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2014 Sebastian Freundt 5 * All rights reserved. 6 */ 7 #include "test.h" 8 DEFINE_TEST(test_empty_xz)9DEFINE_TEST(test_empty_xz) 10 { 11 const char *reffile = "test_empty.xz"; 12 int f; 13 14 extract_reference_file(reffile); 15 f = systemf("%s %s >test.out 2>test.err", testprog, reffile); 16 if (f == 0 || canXz()) { 17 assertEqualInt(0, f); 18 assertEmptyFile("test.out"); 19 assertEmptyFile("test.err"); 20 } else { 21 skipping("It seems xz is not supported on this platform"); 22 } 23 } 24