Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Boost Testcases do not show in VA View
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

space_cowboy
New Member

8 Posts

Posted - Mar 13 2009 :  06:50:45 AM  Show Profile  Reply with Quote
I have several Testcases and Testsuites defined using the BOOST_AUTO_TEST_SUITE and BOOST_AUTO_TEST_CASE macros, but they are not shown in the [Symbols in Solution]-list in the VA View. I enabled enhanced macro parsing in the registry and rebuilt the symbol databases, but this had no effect here.

Here is my system info:

VA_X.dll file version 10.5.1715.0 built 2009.01.25
Licensed to:
VA X: --------------------------
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 Service Pack 3
2 processors

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio 8\\VC\\include;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;
C:\\Programme\\Microsoft DirectX SDK (August 2007)\\Include;
C:\\Programme\\Intel\\IPP\\5.3.4.087\\ia32\\include;
C:\\Programme\\Microsoft SDKs\\Windows\\v6.1\\Include;

Other Includes:

Stable Source Directories:
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\crt\\src;

Thanks !

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 13 2009 :  6:56:20 PM  Show Profile  Reply with Quote
Can you please post an example macro where Visual Assist cannot extract the required information, so we can try to reproduce your problem here.

You can post one of your macros or a simplified version where the problem still happens.

If you don't want to post the source publicly, then just use our form here:
http://www.wholetomato.com/support/contact.asp
Please indicate this thread ID or URL in the description, so we can match it up.

Edited by - accord on Mar 13 2009 7:01:40 PM
Go to Top of Page

space_cowboy
New Member

8 Posts

Posted - Mar 16 2009 :  08:57:32 AM  Show Profile  Reply with Quote
Testcode would look like this :

#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_SUITE( TestSuite1 )

BOOST_AUTO_TEST_CASE( TestCase1 )
{
	BOOST_CHECK_EQUAL( 1, 2 );
}

BOOST_AUTO_TEST_SUITE_END()


Neither TestSuite1 nor TestCase1 are shown in the list of symbols in the solution. The macro definitions are rather complex and can be taken from the Boost.Test source. As far as I understand it, the BOOST_AUTO_TEST_CASE macro user the BOOST_FIXTURE_TEST_CASE macro, wich defines
struct TestCase1
wich has the testmethod as public member. What I want is, that i can type the name of test case or test suite in the symbols list and the get there.

wbr

Space_Cowboy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Mar 16 2009 :  2:14:35 PM  Show Profile  Reply with Quote
You may find this forum thread helpful:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8594

We are working on some changes internally that *may* help with these Boost macros:

case=25115

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Apr 16 2009 :  5:43:02 PM  Show Profile  Reply with Quote
If you are using VA 1721 or above then there is something you can try. Firstly make sure you have turned on macro parsing as described in this FAQ entry:

http://docs.wholetomato.com?W363

Then with all instances of the IDE closed set the registry key:

HKCU \\ Software \\ Whole Tomato \\ Visual Assist X \\ LimitMacro = "NoDepthLimit"

instead of the old value of "No".

The macro parsing should be quite a bit faster. Can you please let me know if this makes any difference or not.

zen is the art of being at one with the two'ness
Go to Top of Page

space_cowboy
New Member

8 Posts

Posted - Apr 20 2009 :  08:38:45 AM  Show Profile  Reply with Quote
Ok, I updated to version 1722 and set the registry values as described. The tests still do not show up in the symbol list. If anything got faster i cannot really tell, since my solutions are not that big that it would make any difference.

wbr

Space_Cowboy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Apr 20 2009 :  11:13:25 AM  Show Profile  Reply with Quote
*sigh* so much for that theory.

What version of Boost do I need to be using for your sample code to compile?

Once I get this compiling I am going to see if I can make any progress using helper macro's in VA's StdAfx.h file.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000