Skip to content

Commit

Permalink
Attempting to get REPL shell-mode tests to work in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed Nov 30, 2014
1 parent 4993d37 commit 8bbcdb4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,24 @@ tmpdir = mktempdir()
write(stdin_write, ";")
readuntil(stdout_read, "shell> ")
write(stdin_write, "cd $(tmpdir)\n")
readuntil(stdout_read, "$(tmpdir)\n")
readuntil(stdout_read, "cd $(tmpdir)")
readuntil(stdout_read, tmpdir)
readuntil(stdout_read, "\n")
readuntil(stdout_read, "\n")
@test pwd() != origpwd
write(stdin_write, ";")
readuntil(stdout_read, "shell> ")
write(stdin_write, "cd -\n")
readuntil(stdout_read, "$(origpwd)\n")
readuntil(stdout_read, origpwd)
readuntil(stdout_read, "\n")
readuntil(stdout_read, "\n")
@test pwd() == origpwd
write(stdin_write, ";")
readuntil(stdout_read, "shell> ")
write(stdin_write, "cd\n")
readuntil(stdout_read, "$(homedir())\n")
readuntil(stdout_read, homedir())
readuntil(stdout_read, "\n")
readuntil(stdout_read, "\n")
@test pwd() == homedir()
rm(tmpdir)
cd(origpwd)
Expand Down

0 comments on commit 8bbcdb4

Please sign in to comment.