Bug #43007 main.upgrade fails on Windows in PB2
Submitted: 19 Feb 2009 9:06 Modified: 7 Mar 2009 0:01
Reporter: Alexander Nozdrin Email Updates:
Status: Closed Impact on me:
None 
Category:Tests: Server Severity:S3 (Non-critical)
Version:6.0-TRUNK OS:Windows
Assigned to: Alexander Nozdrin CPU Architecture:Any
Tags: pb2, test failure

[19 Feb 2009 9:06] Alexander Nozdrin
Description:
Symptoms:
---------------------------------------------------------
CURRENT_TEST: main.upgrade
'cp' is not recognized as an internal or external command,
operable program or batch file.
mysqltest: At line 56: system command 'cp $MYSQL_TEST_DIR/std_data/old_table-323.frm $MYSQLD_DATADIR/test/t1.frm' failed

The result from queries just before the failure was:
< snip >
t1
t-1
drop database `mysqltest1`;
drop database `mysqltest-1`;
drop table if exists `txu@0023p@0023p1`;
drop table if exists `txu#p#p1`;
create table `txu#p#p1` (s1 int);
insert into `txu#p#p1` values (1);
select * from `txu@0023p@0023p1`;
ERROR 42S02: Table 'test.txu@0023p@0023p1' doesn't exist
create table `txu@0023p@0023p1` (s1 int);
insert into `txu@0023p@0023p1` values (2);
select * from `txu@0023p@0023p1`;
s1
2
select * from `txu#p#p1`;
s1
1
drop table `txu@0023p@0023p1`;
drop table `txu#p#p1`;
---------------------------------------------------------

Reported after a failure on 2009-02-17 in 6.0 main.

Looks like this bug was not fixed by Bug#38331.

How to repeat:
XRef2: http://tinyurl.com/byqdts
[19 Feb 2009 10:41] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/66872

2728 Alexander Nozdrin	2009-02-19
      A patch for Bug#43007 (main.upgrade fails on Windows in PB2).
      Use "copy_file" MTR directive instead of "cp" OS command.
      modified:
        mysql-test/t/upgrade.test
[19 Feb 2009 10:41] Alexander Nozdrin
Pushed into 6.0-runtime.
[6 Mar 2009 19:19] Bugs System
Pushed into 6.0.11-alpha (revid:alik@sun.com-20090306190634-6s4zeti557q6stly) (version source revid:alik@sun.com-20090219104049-jiyunijbr80s3le4) (merge vers: 6.0.10-alpha) (pib:6)
[7 Mar 2009 0:01] Paul DuBois
Test case change. No changelog entry needed.