File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55run_icbd
66
7+ # For some reasons this test fails if it ends with send() instead of expect().
8+ # Either this is an oicb (timing?) bug, or failure of expect(1) - not reading
9+ # stdout from oicb.
10+
711run_oicb user1 roomfoo << EOE
812set send_human { .1 .2 1 .05 0.5 }
913expect "You are now in group roomfoo\\ r\\ n" { send "/m user1 test 1\\ n" }
1014expect "] \\ *user1\\ * test 1\\ r\\ n" { send "\t/m user2 test 2\\ n" }
11- expect "! No such user user2\\ r\\ n" { send "\\ ttest 3\\ ntest 4\\ n"; exit 0 }
15+ expect "! No such user user2\\ r\\ n" { send "\\ t\\ ttest 3\\ ntest 4\\ n/m user1 test 5\n" }
16+ expect "] \\ *user1\\ * test 5\\ r\\ n" { exit 0 }
1217exit 1
1318EOE
1419
@@ -35,6 +40,8 @@ sed -E "s/^${ts_re} //" <"$user1_log" >"${user1_log}.stripped" || fail "sed ${us
3540diff -u -L " user1.log.expected" -L " user1.log.actual" - " ${user1_log} .stripped" << EOF
3641me: test 1
3742user1: test 1
43+ me: test 5
44+ user1: test 5
3845EOF
3946
4047sed -E " s/^${ts_re} //" < " $user2_log " > " ${user2_log} .stripped" || fail " sed ${user2_log} "
You can’t perform that action at this time.
0 commit comments