Bug #35379 Make test fails for 5.0.45 in build env
Submitted: 18 Mar 2008 7:59 Modified: 18 Mar 2008 9:56
Reporter: xiao weifeng Email Updates:
Status: Duplicate Impact on me:
None 
Category:Tests Severity:S3 (Non-critical)
Version:5.0.45 OS:Linux
Assigned to: CPU Architecture:Any

[18 Mar 2008 7:59] xiao weifeng
Description:
variables                      [ pass ]           1852
view                           [ fail ]
Errors are (from /builddir/build/BUILD/mysql-5.0.45/mysql-test/var/log/mysqltest-time) :
mysqltest: Result content mismatch
(the last lines may be the most important ones)
Below are the diffs between actual and expected results:
-------------------------------------------------------
*** r/view.result       Wed Jul  4 16:49:09 2007
--- r/view.reject       Tue Mar 18 08:46:32 2008
***************
*** 2711,2722 ****
  v1    CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(now()) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75)
  SELECT (year(now())-year(DOB)) AS Age FROM t1 HAVING Age < 75;
  Age
! 43
! 39
  SELECT * FROM v1;
  Age
! 43
! 39
  DROP VIEW v1;
  DROP TABLE t1;
  CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a char(6) DEFAULT 'xxx');
--- 2711,2722 ----
  v1    CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(now()) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75)
  SELECT (year(now())-year(DOB)) AS Age FROM t1 HAVING Age < 75;
  Age
! 44
! 40
  SELECT * FROM v1;
  Age
! 44
! 40
  DROP VIEW v1;
  DROP TABLE t1;
  CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a char(6) DEFAULT 'xxx');
-------------------------------------------------------
Please follow the instructions outlined at
http://www.mysql.com/doc/en/Reporting_mysqltest_bugs.html
to find the reason to this problem and how to report this.
Result from queries before failure can be found in r/view.log

Aborting: view failed in default mode. To continue, re-run with '--force'.
Stopping All Servers
make: *** [test-ns] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.83862 (%build)

How to repeat:
./mysql-test-run

Suggested fix:
it is similar to bug#25585 for 5.0.33
[18 Mar 2008 9:01] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.51a, and inform about the results.
[18 Mar 2008 9:56] Valeriy Kravchuk
Looks like a duplicate of http://bugs.mysql.com/bug.php?id=25359. Bug in a test suite itself, fixed since 5.0.52.