Bug #74099 Mysys.MysysMySymlink unit test failing under Mac OS X

Submitted: 26 Sep 2014 8:39 Modified: 26 Nov 2014 3:46
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.7.5 OS:MacOS (10.9)
Assigned to: CPU Architecture:Any
Tags: unittest

[26 Sep 2014 8:39] Laurynas Biveinis
Description:
...
unit_tests                               w0 [ fail ]
...
  The following tests FAILED:
  	 24 - merge_small_tests (Failed)
...
# Run 193 Mysys.MysysMySymlink
/Users/laurynas/percona/lp-mysql-server/mysql-server/unittest/gunit/mysys_my_symlink-t.cc:43: FailureValue of: filename
  Actual: "/var/folders/sj/tww0v3g14tncqd9lsc81vqj80000gn/T/gunit_mysys_symlinkKp6yUA"
Expected: resolvedname
Which is: "/private/var/folders/sj/tww0v3g14tncqd9lsc81vqj80000gn/T/gunit_mysys_symlinkKp6yUA"
not ok 193

How to repeat:
See above

Suggested fix:
Adapt for Mac OS X, or just disable it
[26 Nov 2014 3:46] MySQL Verification Team
Hello Laurynas,

Thank you for the report.

Thanks,
Umesh
[26 Nov 2014 3:48] MySQL Verification Team
// How to repeat

// Environment details

ushastry$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.9.5
BuildVersion:	13F34

cmake version 3.0.2

ushastry$ clang --version

Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)

Target: x86_64-apple-darwin13.4.0

Thread model: posix

$ gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1

Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)

Target: x86_64-apple-darwin13.4.0

Thread model: posix

// Source details

$ md5 mysql-5.7.5-m15.tar.gz

MD5 (mysql-5.7.5-m15.tar.gz) = 95aa1873fd414482a1a88752cbde46bd

// Build

/Users/ushastry/Downloads/cmake-3.0.2-Darwin64-universal/CMake.app/Contents/bin/cmake . -DCMAKE_INSTALL_PREFIX=/Users/ushastry/Downloads/mysql-5.7.5-m15 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=../boost -DENABLE_DOWNLOADS=1

^^^ If download fails, then to enable google test, please download http://googlemock.googlecode.com/files/gmock-1.6.0.zip to the directory /Users/ushastry/Downloads/mysql-5.7.5-m15/source_downloads If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80

make

// use ctest

~ushastry/Downloads/cmake-3.0.2-Darwin64-universal/CMake.app/Contents/bin/ctest
..
..
.

24: # Run 172 Mysys.MysysMySymlink
24: /Users/ushastry/Downloads/mysql-5.7.5-m15/unittest/gunit/mysys_my_symlink-t.cc:43: FailureValue of: filename
24:   Actual: "/var/folders/bk/1bmg7xr512d852n21850wh280000gp/T/gunit_mysys_symlinkvQ30Bc"
24: Expected: resolvedname
24: Which is: "/private/var/folders/bk/1bmg7xr512d852n21850wh280000gp/T/gunit_mysys_symlinkvQ30Bc"
24: not ok 172

24/29 Test #24: merge_small_tests ................***Failed    1.11 sec

// or navigate to unittest/gunit

cd unittest/gunit/

~ushastry/Downloads/cmake-3.0.2-Darwin64-universal/CMake.app/Contents/bin/ctest
Test project /Users/ushastry/Downloads/mysql-5.7.5-m15/unittest/gunit
    Start 1: merge_large_tests
1/7 Test #1: merge_large_tests ................   Passed    1.36 sec
    Start 2: merge_small_tests
2/7 Test #2: merge_small_tests ................***Failed    1.10 sec
    Start 3: ha_innodb
3/7 Test #3: ha_innodb ........................   Passed    0.03 sec
    Start 4: mem0mem
4/7 Test #4: mem0mem ..........................   Passed    0.02 sec
    Start 5: ut0crc32
5/7 Test #5: ut0crc32 .........................   Passed    0.03 sec
    Start 6: ut0mem
6/7 Test #6: ut0mem ...........................   Passed    0.02 sec
    Start 7: ut0new
7/7 Test #7: ut0new ...........................   Passed    0.02 sec

86% tests passed, 1 tests failed out of 7

Total Test time (real) =   2.68 sec

The following tests FAILED:
	  2 - merge_small_tests (Failed)
Errors while running CTest

 # Run 172 Mysys.MysysMySymlink
2: /Users/ushastry/Downloads/mysql-5.7.5-m15/unittest/gunit/mysys_my_symlink-t.cc:43: FailureValue of: filename
2:   Actual: "/var/folders/bk/1bmg7xr512d852n21850wh280000gp/T/gunit_mysys_symlinkBi1nlQ"
2: Expected: resolvedname
2: Which is: "/private/var/folders/bk/1bmg7xr512d852n21850wh280000gp/T/gunit_mysys_symlinkBi1nlQ"
2: not ok 172

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.