File: server_test.elvts

package info (click to toggle)
elvish 0.21.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,372 kB
  • sloc: javascript: 236; sh: 130; python: 104; makefile: 88; xml: 9
file content (22 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//each:elvish-in-global

////////////////////
# error conditions #
////////////////////

## no -daemon flag ##
~> elvish
[stderr] internal error: no suitable subprogram
[exit] 2

## superfluous arguments ##
~> elvish -daemon x &check-stderr-contains='arguments are not allowed with -daemon'
[stderr contains "arguments are not allowed with -daemon"] true
[exit] 2

## can't listen to socket ##
//in-temp-dir
~> print > sock
~> elvish -daemon -sock sock -db db &check-stdout-contains='failed to listen on sock'
[stdout contains "failed to listen on sock"] true
[exit] 2