Mercurial > gnulib
view tests/test-copy-file-1.sh @ 40086:d6de7c427079
stdopen: modernize and simplify
* lib/stdopen.c: Update copyright date
Do not include sys/types.h; no longer needed these days.
(stdopen): Use C99-style decl in loop. Return int errno
value, rather than just a bool. Do not worry about fd mismatches,
since the caller cares only if 0, 1, 2 are occupied.
* lib/stdopen.h: No need to include <stdbool.h>.
* m4/stdopen.m4: Remove.
* modules/stdopen: New file.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 05 Jan 2019 18:02:32 -0800 |
parents | d50152d6b5d2 |
children | 066c585853e5 |
line wrap: on
line source
#!/bin/sh # Test copy-file on the file system of /var/tmp, which usually is a local # file system. if test -d /var/tmp; then TMPDIR=/var/tmp else TMPDIR=/tmp fi export TMPDIR "${srcdir}/test-copy-file.sh" ret1=$? NO_STDERR_OUTPUT=1 "${srcdir}/test-copy-file.sh" ret2=$? case $ret1 in 77 ) exit $ret2 ;; * ) exit $ret1 ;; esac