summaryrefslogtreecommitdiff
path: root/tests/integration/rdb.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-02-22 13:08:21 +0100
committerantirez <antirez@gmail.com>2017-02-22 13:08:21 +0100
commit95883313b5a405916fabed34c3af290d6072c817 (patch)
treee8059914f45616a3803fe1987e6a864fa7d29e1e /tests/integration/rdb.tcl
parent2b36706a48759ac6ed991ab1f8257de122425a75 (diff)
downloadredis-95883313b5a405916fabed34c3af290d6072c817.tar.gz
Solaris fixes about tail usage and atomic vars.
Testing with Solaris C compiler (SunOS 5.11 11.2 sun4v sparc sun4v) there were issues compiling due to atomicvar.h and running the tests also failed because of "tail" usage not conform with Solaris tail implementation. This commit fixes both the issues.
Diffstat (limited to 'tests/integration/rdb.tcl')
-rw-r--r--tests/integration/rdb.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/rdb.tcl b/tests/integration/rdb.tcl
index 2ed47cc58..66aad4cc7 100644
--- a/tests/integration/rdb.tcl
+++ b/tests/integration/rdb.tcl
@@ -66,7 +66,7 @@ if {!$isroot} {
test {Server should not start if RDB file can't be open} {
wait_for_condition 50 100 {
[string match {*Fatal error loading*} \
- [exec tail -n1 < [dict get $srv stdout]]]
+ [exec tail -1 < [dict get $srv stdout]]]
} else {
fail "Server started even if RDB was unreadable!"
}
@@ -90,7 +90,7 @@ start_server_and_kill_it [list "dir" $server_path] {
test {Server should not start if RDB is corrupted} {
wait_for_condition 50 100 {
[string match {*CRC error*} \
- [exec tail -n10 < [dict get $srv stdout]]]
+ [exec tail -10 < [dict get $srv stdout]]]
} else {
fail "Server started even if RDB was corrupted!"
}