Bug #35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls'
Submitted: 1 Apr 2008 10:27 Modified: 29 Jul 2008 9:57
Reporter: Kent Boortz Email Updates:
Status: Closed
Category:Server: Tests Severity:S2 (Serious)
Version:5.1 OS:Any
Assigned to: Mattias Jonsson Target Version:5.1+
Triage: D3 (Medium)

[1 Apr 2008 10:27] Kent Boortz
Description:
Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls',
making it fail on some platforms. Also Windows portability of the test
case is a problem. On HP-UX 11.23 the failure is caused by the diff

***************
*** 16813,16819 ****
  $MYSQLTEST_VARDIR/master-data/test/t1#P#p2.MYI
  $MYSQLTEST_VARDIR/master-data/test/t1.frm
  $MYSQLTEST_VARDIR/master-data/test/t1.par
! ls: $MYSQLTEST_VARDIR/mysql-test-data-dir/t1*: No such file or directory
  $MYSQLTEST_VARDIR/mysql-test-idx-dir/t1#P#p1.MYI
  $MYSQLTEST_VARDIR/mysql-test-idx-dir/t1#P#p2.MYI

--- 16813,16819 ----
  $MYSQLTEST_VARDIR/master-data/test/t1#P#p2.MYI
  $MYSQLTEST_VARDIR/master-data/test/t1.frm
  $MYSQLTEST_VARDIR/master-data/test/t1.par
! $MYSQLTEST_VARDIR/mysql-test-data-dir/t1* not found
  $MYSQLTEST_VARDIR/mysql-test-idx-dir/t1#P#p1.MYI
  $MYSQLTEST_VARDIR/mysql-test-idx-dir/t1#P#p2.MYI

How to repeat:
Run this test case on HP-UX 11.24, Solaris or other platform with
a "ls" that differs in error output than the expected Linux one.
[30 Jun 2008 16:50] 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/48743

2681 Mattias Jonsson	2008-06-30
      Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls'
      
      'ls' have portable problems (not exact the same behavior on all systems,
      does not exits on windows).
      
      So I added list_files that relies on the portable mysys library instead.
      (and also list_files_write_file and list_files_append_file,
      since the test was using '--exec ls' in that way.
[1 Jul 2008 22:21] Patrick Crews
Ok to push.

Tested on both Mac OSX and Windows without issue.
[9 Jul 2008 11:19] 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/49290

2681 Mattias Jonsson	2008-07-09
      Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls'
      
      The problem is that relying on the output of the 'ls' command is not
      portable as its behavior is not the same between systems and it might
      even not be available at all in (Windows).
      
      So I added list_files that relies on the portable mysys library instead.
      (and also list_files_write_file and list_files_append_file,
      since the test was using '--exec ls' in that way.)
[9 Jul 2008 16:27] Mattias Jonsson
Pushed into 60-bugteam and 51-bugteam.
[28 Jul 2008 16:46] Bugs System
Pushed into 5.1.28  (revid:joerg@mysql.com-20080714105031-88hmr2baz5di9xej) (version
source revid:joerg@mysql.com-20080714105031-88hmr2baz5di9xej) (pib:3)
[28 Jul 2008 17:10] Paul DuBois
Test case change. No changelog entry needed.

Setting report to Patch Queued pending push of fix into 6.0.x.
[29 Jul 2008 9:05] Georgi Kodinov
Pushed in 6.0.7-alpha
[29 Jul 2008 9:57] Jon Stephens
Closed without further action per comment from Paul.