File: test-thread-without-msgid

package info (click to toggle)
mmh 0.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,976 kB
  • sloc: ansic: 26,132; sh: 6,871; makefile: 680; awk: 74
file content (24 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
######################################################
#
# Test that the -thread option works.
#
######################################################

expected_err=$MH_TEST_DIR/$$.expected_err
expected_out=$MH_TEST_DIR/$$.expected_out
actual_err=$MH_TEST_DIR/$$.actual_err
actual_out=$MH_TEST_DIR/$$.actual_out

# All messages should be go to stdout
cat > $expected_out <<EOF
0
EOF
# Nothing should to go stderr
cat > $expected_err <<EOF
pick: message 5 is not part of a thread
EOF

pick -thread 5 > $actual_out 2> $actual_err
diff -u $expected_err $actual_err || exit 1
diff -u $expected_out $actual_out || exit 1