pgplot: use testpath
This commit is contained in:
parent
e876d7ef49
commit
e5394165ae
1 changed files with 7 additions and 10 deletions
|
@ -103,16 +103,13 @@ EOS
|
|||
end
|
||||
|
||||
test do
|
||||
File.open('test_pgplot', 'w') do |t|
|
||||
t.write(<<-EOS
|
||||
spawn #{prefix}/examples/pgdemo1
|
||||
expect {
|
||||
(testpath/'test_pgplot').write <<-EOS.undent
|
||||
spawn #{prefix}/examples/pgdemo1
|
||||
expect {
|
||||
NULL {send "/XWINDOW\n"; exp_continue}
|
||||
RETURN {send "\n"; exp_continue}
|
||||
}
|
||||
EOS
|
||||
)
|
||||
end
|
||||
}
|
||||
EOS
|
||||
system "expect test_pgplot; killall pgxwin_server"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue