1 /* 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2023 Adrian Vovk 5 * All rights reserved. 6 */ 7 #include "test.h" 8 9 /* Test t arg - Test zip contents, but fail! */ DEFINE_TEST(test_t_bad)10DEFINE_TEST(test_t_bad) 11 { 12 const char *reffile = "test_t_bad.zip"; 13 int r; 14 15 extract_reference_file(reffile); 16 r = systemf("%s -t %s >test.out 2>test.err", testprog, reffile); 17 assert(r != 0); 18 assertNonEmptyFile("test.out"); 19 assertNonEmptyFile("test.err"); 20 } 21