Hi,
This patch fixes a comparison failure spotted by Elder Costa because
the script was generating empty files. This new patch also catches the
fact if cron fails to create both files, it at least give a failure.
The correspond error messages are not perfect, but at least give us a
pointer of problem.
Signed-off-by: CAI Qian <[EMAIL PROTECTED]>
--- testcases/commands/cron/cron_tests.sh.orig 2008-10-29 23:18:24.000000000
+0800
+++ testcases/commands/cron/cron_tests.sh 2008-10-29 23:26:17.000000000
+0800
@@ -178,7 +178,7 @@
TS_MIN2=$(awk '{print $8}' $LTPTMP/tst1_cron.out |
awk -F: '{printf("%d", $2);}')
- if [ "$TS_MIN2" != "$TS_MIN1" ]
+ if [ -z "$TS_MIN2" ] || [ "$TS_MIN2" != "$TS_MIN1" ]
then
# if the value of the minute field did not advance by 1
# flag as failure.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list