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 non existent file */ 10 DEFINE_TEST(test_not_exist) 11 { 12 int r; 13 r = systemf("%s nonexist.zip >test.out 2>test.err", testprog); 14 assert(r != 0); 15 assertEmptyFile("test.out"); 16 assertNonEmptyFile("test.err"); 17 } 18