Skip to content

Commit 2f3c4f4

Browse files
committed
tests: unbork
Many of the tests were broken from expecting a specific ~~version~~ commit hash string in the command output (the $Id$ stuff). Another was broken by a new argument added by void.
1 parent fd3fd32 commit 2f3c4f4

File tree

10 files changed

+5
-26
lines changed

10 files changed

+5
-26
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ src/utmpset
2525
# Generated completions
2626
sv.bash
2727
sv.zsh
28+
29+
# Test output
30+
src/*.local

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install: all
1616
done
1717

1818
clean:
19-
rm -f *.o *.a $(PROGS)
19+
rm -f *.o *.a $(PROGS) *.local
2020

2121
runit: runit.o unix.a byte.a
2222
@printf " [CCLD]\t\t$@\n"

src/chpst.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ rm -rf "${ctmp}"
33

44
chpst
55
echo $?
6-
chpst -V
7-
echo $?
86

97
# -u
108
# -U

src/chpst.dist

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
usage: chpst [-vP012] [-u user[:group]] [-U user[:group]] [-b argv0] [-e dir] [-/ root] [-n nice] [-l|-L lock] [-m n] [-d n] [-o n] [-p n] [-f n] [-c n] prog
2-
3-
100
4-
$Id: f279d44141c981dd7535a12260efcf1ef7beed26 $
5-
usage: chpst [-vP012] [-u user[:group]] [-U user[:group]] [-b argv0] [-e dir] [-/ root] [-n nice] [-l|-L lock] [-m n] [-d n] [-o n] [-p n] [-f n] [-c n] prog
1+
usage: chpst [-vP012] [-u user[:group]] [-U user[:group]] [-b argv0] [-e dir] [-/ root] [-C pwd] [-n nice] [-l|-L lock] [-m n] [-d n] [-o n] [-p n] [-f n] [-c n] prog
62

73
100
84
test=1

src/sv.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ trap 'rm -rf "${ctmp}"' EXIT
44

55
sv
66
echo $?
7-
sv -V
8-
echo $?
97

108
mkdir "${ctmp}"
119
cat >"${ctmp}"/run <<-\EOT

src/sv.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
usage: sv [-v] [-w sec] command service ...
22

3-
100
4-
$Id: 900314260c6d52c986c5357673bea2f3bd3f4698 $
5-
usage: sv [-v] [-w sec] command service ...
6-
73
100
84
starting
95
0

src/svlogd.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ rm -rf "${ctmp}"
33

44
svlogd
55
echo $?
6-
svlogd -V
7-
echo $?
86

97
mkdir "${ctmp}"
108
echo foo |svlogd "${ctmp}"

src/svlogd.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
usage: svlogd [-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir ...
22

3-
111
4-
$Id: 5e55a90e0a1b35ec47fed3021453c50675ea1117 $
5-
usage: svlogd [-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir ...
6-
73
111
84
0
95
foo

src/utmpset.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#!/bin/sh
22
utmpset
33
echo $?
4-
utmpset -V
5-
echo $?

src/utmpset.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
usage: utmpset [-w] line
22

33
1
4-
$Id: cb399098f794012a7f5e6a3a7090b2d53b86c08c $
5-
usage: utmpset [-w] line
6-
7-
1

0 commit comments

Comments
 (0)