File: 0001-Fix-test.patch

package info (click to toggle)
lua-lpty 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: ansic: 546; makefile: 34
file content (20 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Fri, 23 Aug 2013 16:22:45 +0200
Subject: Fix test

---
 samples/lptytest.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/samples/lptytest.lua b/samples/lptytest.lua
index b9256d7..ba19025 100644
--- a/samples/lptytest.lua
+++ b/samples/lptytest.lua
@@ -196,6 +196,7 @@ end
 -- 16
 announce("sending data to no_local_echo pty then checking for data, should return false")
 ok, val = pcall(lpty.send, pn, "abc\n")
+while pn:readok() do pn:read() end
 if not ok then
 	fail(tostring(val))
 else