From ad347646055a08ca045d86a1a05bca07ee7c01ab Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 12 May 2015 07:20:15 +0200 Subject: [PATCH] Make shootout test work on OSX Change-Id: I0cac98b68ee67eb016e32eeb17fc41a2cce38d9b Reviewed-by: hjk --- tests/manual/shootout/tst_codesize.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/manual/shootout/tst_codesize.cpp b/tests/manual/shootout/tst_codesize.cpp index d1876e3d4df..542e690a0c1 100644 --- a/tests/manual/shootout/tst_codesize.cpp +++ b/tests/manual/shootout/tst_codesize.cpp @@ -303,7 +303,11 @@ void tst_CodeSize::codesize_data() #ifdef Q_CC_MSVC s.cmd = "dumpbin /DISASM /SECTION:.text"; #else +# ifdef Q_OS_MAC + s.cmd = "otool -t -v"; +# else s.cmd = "objdump -D -j.text"; +# endif #endif s.title = "This 'test' compares different approaches to return something \n" "like an immutable string from a function.";