1cdf63a70SMartin Matuska /*- 2*bd66c1b4SMartin Matuska * SPDX-License-Identifier: BSD-2-Clause 3*bd66c1b4SMartin Matuska * 4cdf63a70SMartin Matuska * Copyright (c) 2014 Mike Kazantsev 5cdf63a70SMartin Matuska * All rights reserved. 6cdf63a70SMartin Matuska */ 7cdf63a70SMartin Matuska #include "test.h" 8cdf63a70SMartin Matuska DEFINE_TEST(test_error)9cdf63a70SMartin MatuskaDEFINE_TEST(test_error) 10cdf63a70SMartin Matuska { 11cdf63a70SMartin Matuska const char *reffile = "test_expand.error"; 12cdf63a70SMartin Matuska 13cdf63a70SMartin Matuska assertFileNotExists(reffile); 14cdf63a70SMartin Matuska assert(0 != systemf("%s %s >test.out 2>test.err", testprog, reffile)); 15cdf63a70SMartin Matuska 16cdf63a70SMartin Matuska assertEmptyFile("test.out"); 17cdf63a70SMartin Matuska assertNonEmptyFile("test.err"); 18cdf63a70SMartin Matuska } 19