test_expand_Z.c 416 B

123456789101112131415161718
  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. DEFINE_TEST(test_expand_Z)
  9. {
  10. const char *reffile = "test_expand.Z";
  11. extract_reference_file(reffile);
  12. assertEqualInt(0, systemf("%s %s >test.out 2>test.err", testprog, reffile));
  13. assertTextFileContents("contents of test_expand.Z.\n", "test.out");
  14. assertEmptyFile("test.err");
  15. }