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_error) 10 { 11 const char *reffile = "test_expand.error"; 12 13 assertFileNotExists(reffile); 14 assert(0 != systemf("%s %s >test.out 2>test.err", testprog, reffile)); 15 16 assertEmptyFile("test.out"); 17 assertNonEmptyFile("test.err"); 18 } 19