logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

mkfifo.sh (543B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. WD="$(dirname "$0")"
  5. target="${WD}/../cmd/mkfifo"
  6. plans=7
  7. . "${WD}/tap.sh"
  8. t foo foo
  9. t_cmd foo:test '' test -p foo
  10. t_cmd foo:rm '' rm foo
  11. t_cmd exists:touch '' touch exists
  12. t --exit=1 exists exists "mkfifo: error: Failed creating FIFO at 'exists': File exists
  13. "
  14. t_cmd exists:rm '' rm exists
  15. t --exit=1 enotdir /dev/null/e/noent "mkfifo: error: Failed creating FIFO at '/dev/null/e/noent': Not a directory
  16. "