Differences between revisions 4 and 5
Revision 4 as of 2004-05-28 09:48:08
Size: 364
Editor: anonymous
Comment:
Revision 5 as of 2009-03-16 03:30:42
Size: 379
Editor: anonymous
Comment: converted to 1.6 markup
No differences found!

Page for test examples.

Simple file compare:

  set test "file compare"
  spawn "/bin/bash"
  send "diff -s expect.dat result.dat\r"
  expect "diff -sq expect.dat result.dat\r\n"
  expect {
    -re "Files .* identical." {pass "$test"}
    -re "Files .* differ" {fail "$test"}
     default {fail "$test"}
  }