Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
fde34572
Commit
fde34572
authored
Apr 08, 2015
by
Hisham Muhammad
Browse files
Make test more robust.
parent
86d57504
Changes
1
Hide whitespace changes
Inline
Side-by-side
test_spec.lua
View file @
fde34572
...
@@ -213,12 +213,12 @@ describe("htop test suite", function()
...
@@ -213,12 +213,12 @@ describe("htop test suite", function()
send
(
"/"
)
send
(
"/"
)
send
(
"busted"
)
send
(
"busted"
)
local
attr
=
rt
:
cellAttr
(
rt
:
rows
()
-
1
,
30
)
local
attr
=
rt
:
cellAttr
(
rt
:
rows
()
-
1
,
30
)
send
(
"
\n
"
)
delay
(
0
.
3
)
delay
(
0
.
4
)
local
line
=
find_selected_y
()
local
line
=
find_selected_y
()
local
pid
=
(
" "
..
tostring
(
unistd
.
getpid
())):
sub
(
-
5
)
local
pid
=
(
" "
..
tostring
(
unistd
.
getpid
())):
sub
(
-
5
)
assert
.
equal
(
attr
,
attrs
.
black_on_cyan
)
assert
.
equal
(
attr
,
attrs
.
black_on_cyan
)
local
ourpid
=
check_string_at
(
1
,
line
,
pid
)
local
ourpid
=
check_string_at
(
1
,
line
,
pid
)
send
(
"
\n
"
)
send
(
curses
.
KEY_HOME
)
send
(
curses
.
KEY_HOME
)
assert
.
equal
(
check
(
ourpid
))
assert
.
equal
(
check
(
ourpid
))
end
)
end
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment