Skip to content

Commit

Permalink
[tests] some more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tstack committed Nov 15, 2015
1 parent c0fc73d commit 65a4803
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,10 @@ DISTCLEANFILES = \
truncfile.0 \
logfile_append.0 \
test.log \
logfile_stdin.log
logfile_stdin.log \
logfile_syslog.0 \
unreadable.log \
empty

distclean-local:
$(RM_V)rm -rf sessions
Expand Down
5 changes: 3 additions & 2 deletions test/test_logfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ run_test ./drive_logfile ${srcdir}/logfile_empty.0

on_error_fail_with "Didn't handle empty log?"

touch -t 200711030923 ${srcdir}/logfile_syslog.0
run_test ./drive_logfile -t -f syslog_log ${srcdir}/logfile_syslog.0
cp ${srcdir}/logfile_syslog.0 logfile_syslog.0
touch -t 200711030923 logfile_syslog.0
run_test ./drive_logfile -t -f syslog_log logfile_syslog.0

check_output "Syslog timestamp interpreted incorrectly?" <<EOF
Nov 03 09:23:38 2007 -- 000
Expand Down

0 comments on commit 65a4803

Please sign in to comment.