Pankaj | 15 May 01:29
Picon
Favicon

Using BoostTest to run unit tests multiple times without quitting test runner

I want to use Boost Test to run unit tests multiple times without quitting
the test runner. Here is the pseudo-code to demonstrate what I want to do:

void main()
{
	for(int i = 0; i < 10; ++i)
	{
		char *arguments[] ={	"MyApplication.exe", 
					"--detect_memory_leak=0"
				};

		boost::unit_test::unit_test_main( &init_function, 2, arguments);
	}
}

The first time unit_test_main is called, all the boost tests run fine but in
the second iteration, boost test throws an exception.

I looked at the internal code and found that framework is initialized
everytime unit_test_main is called and if framework is already initialized,
boost test doesn't like initializing framework again.

Please let me know if there is any way to run units test multiple times
without quitting test runner.

--
View this message in context: http://boost.2283326.n4.nabble.com/Using-BoostTest-to-run-unit-tests-multiple-times-without-quitting-test-runner-tp4630095.html
Sent from the Boost - Testing mailing list archive at Nabble.com.
John Maddock | 30 Apr 18:00
Favicon

[cray] Failing almost every test?

I'm not sure whose running them but the Cray tests are failing every last 
Math lib test with an inscrutable internal error:

CC-1353 crayc++: INTERNAL File = 
/opt/gcc/4.4.4/snos/include/g++/x86_64-suse-linux/bits/c++config.h, Line = 
1431
  CIF Error

  #endif // _GLIBCXX_CXX_CONFIG_H
  ^

CC-2116 crayc++: INTERNAL
  "/opt/cray/cce/8.0.3/CC/x86-64/lib/ccfe" was terminated due to receipt of 
signal 013:  Segmentation fault.

See http://tinyurl.com/cusmk6g

Is this a compiler configuration error, or ??

Thanks, John. 
Jim Bell | 1 May 18:48

Trunk test failed, missing macro_default_test.cpp

FYI, this morning's trunk regression failed to run:

error: Unable to find file or target named
error:     'macro_default_test.cpp'
error: referred from project at
error:     '../libs/filesystem/test'
Belcourt, K. Noel | 10 Apr 20:42
Picon
Favicon

Upcoming failures

Hi,

My system(s) are moving to new hardware, os, etc.. and will likely  
adversely impact both the Sandia testers as well as the trunk and  
release reporting.  I'll attempt to stay on top of problems as they  
arise, just wanted to give you a heads up that problems may appear  
immediately and continue for the next week(s).

Sorry about the late notice.

-- Noel
Belcourt, K. Noel | 8 Apr 23:53
Picon
Favicon

NIghtly trunk tests broken

Hi,

Did someone forget to commit a file?

error: Unable to find file or target named
error:     'test_6498_pass.cpp'
error: referred from project at
error:     '../libs/ratio/test'

-- Noel
Picon

Sandia-clang-trunk - chrono link errors

Hi,


I'm see the following error in trunk regression. Is this a know bug?

Best,
Vicente

Test output: Sandia-clang-trunk - chrono - v1_duration_input_h / clang-linux-trunk
Rev 77622 / Thu, 29 Mar 2012 03:56:04 +0000
Report Time: Sat, 31 Mar 2012 05:03:26 +0000
Link [2012-03-29 07:16:01 UTC]: fail
"/home/kbelco/llvm_linux/build/Debug+Asserts/bin/clang++" -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/test/v1_duration_input_h.test/clang-linux-trunk/debug/v1_duration_input_h" "/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/test/v1_duration_input_h.test/clang-linux-trunk/debug/io/duration_input.o" -g -lrt /usr/bin/ld: /scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/test/v1_duration_input_h.test/clang-linux-trunk/debug/v1_duration_input_h: undefined reference to symbol 'pthread_cancel <at> <at> GLIBC_2.2.5' /usr/bin/ld: note: 'pthread_cancel <at> <at> GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line /lib64/libpthread.so.0: could not read symbols: Invalid operation clang: error: linker command failed with exit code 1 (use -v to see invocation)
_______________________________________________
Boost-Testing mailing list
Boost-Testing <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Picon

Sandia-darwin-clang-trunk - chrono errors

Hi,

I'm see the following error in trunk regression. Is this a know bug? Should we check for non released version? If yes, what can be done to fix it?

Best,
Vicente

Test output: Sandia-darwin-clang-trunk - chrono - manipulate_clock_object_d / clang-darwin-trunk
Rev 77641 / Fri, 30 Mar 2012 09:23:40 +0000
Report Time: Sat, 31 Mar 2012 05:03:26 +0000
Compile [2012-03-30 09:54:10 UTC]: fail
"/home/kbelco/llvm_darwin/build/Release+Asserts/bin/clang++" -x c++ -O0 -g -Wextra -Wno-long-long -pedantic -O0 -fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CHRONO_THREAD_DISABLED -DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_CHRONO_VERSION=2 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -I".." -c -o "/Volumes/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/test/manipulate_clock_object_d.test/clang-darwin-trunk/debug/manipulate_clock_object.o" "../libs/chrono/test/../example/manipulate_clock_object.cpp" In file included from ../libs/chrono/test/../example/manipulate_clock_object.cpp:30: In file included from ../boost/type_traits.hpp:20: In file included from ../boost/type_traits/aligned_storage.hpp:11: In file included from ../boost/aligned_storage.hpp:21: In file included from ../boost/type_traits/type_with_alignment.hpp:18: ../boost/type_traits/is_pod.hpp:45:35: error: 'T' does not refer to a value BOOST_INTERNAL_IS_POD(T) ^ ../boost/type_traits/is_pod.hpp:26:47: note: expanded from macro 'BOOST_INTERNAL_IS_POD' #define BOOST_INTERNAL_IS_POD(T) BOOST_IS_POD(T) ^ ../boost/type_traits/intrinsics.hpp:135:39: note: expanded from macro 'BOOST_IS_POD' # define BOOST_IS_POD(T) __is_pod(T) ^ ../boost/config/suffix.hpp:420:72: note: expanded from macro 'BOOST_STATIC_CONSTANT' # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment ^ ../boost/type_traits/is_pod.hpp:38:20: note: declared here template <typename T> struct is_pod_impl ^ ../boost/type_traits/is_pod.hpp:46:13: error: type name requires a specifier or qualifier >::value)); ^ ../boost/config/suffix.hpp:420:72: note: expanded from macro 'BOOST_STATIC_CONSTANT' # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment ^ In file included from ../libs/chrono/test/../example/manipulate_clock_object.cpp:30: In file included from ../boost/type_traits.hpp:20: In file included from ../boost/type_traits/aligned_storage.hpp:11: In file included from ../boost/aligned_storage.hpp:21: In file included from ../boost/type_traits/type_with_alignment.hpp:18: ../boost/type_traits/is_pod.hpp:46:13: error: expected ')' >::value)); ^ ../boost/config/suffix.hpp:420:72: note: expanded from macro 'BOOST_STATIC_CONSTANT' # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment ^ ../boost/type_traits/is_pod.hpp:42:9: note: to match this '(' (::boost::type_traits::ice_or< ^ ../boost/config/suffix.hpp:420:72: note: expanded from macro 'BOOST_STATIC_CONSTANT' # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment ^ 3 errors generated.
_______________________________________________
Boost-Testing mailing list
Boost-Testing <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Picon

Sandia-gcc-4.6.2_0x Fri, 30 Mar 2012

Hi,

what is going wrong with tester Sandia-gcc-4.6.2_0x?


Almost all the Boost.Thread tests fail with no explanation.

Best,
Vicente

P.S. Exact revision and run
rev 77648
Fri, 30 Mar 2012 16:38:36 +0000

_______________________________________________
Boost-Testing mailing list
Boost-Testing <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Peter Schueller | 6 Mar 09:26
Picon

How to deactivate system error catching without using the commandline?

Dear all,

I need to deactivate system error catching without using the commandline.

I was looking for some possibility to do something like

get_execmonitor().p_catch_system_errors = false;

but I did not find any possibility, and no documentation how the exec
monitor interacts with init_unit_test_suite and main

My current test where I would like to deactivate system error catching
looks as follows (omitted application specific stuff):

...
 7 #define BOOST_TEST_DYN_LINK
 8 #define BOOST_TEST_MODULE "testDLVProcess"
 9 #include <boost/test/unit_test.hpp>
 10 #include <boost/thread.hpp>
...
 70 BOOST_AUTO_TEST_CASE ( testDLVProcess )
 71 {
...
 91 }

This is a cpp file, it is compiled into an executable and then executed.
I would like to set p_catch_system_errors=false within the cpp file, so
that I do not require a wrapper script.

After reading boost source code for about 1 hour I decided to ask on
the mailing list, because I think there must be an easy way. ;)

Best,
Peter
dikim | 16 Feb 20:09
Picon
Favicon

Reboot wowbagger

Hi,

My name is DongInn Kim, the sysadmin in the CREST.

We need to reboot the boost server (wowbagger.osl.iu.edu) to replace the
old RAM. The old one seems to act not normal and we will replace it with a
new one to fix any issues that may happen from the bad RAM.

The reboot time: 3:00PM-3:30PM (E.T.) today (Feb 16, 2012)

I am sorry for the very short notice.

Regards,

- DongInn
Steve M. Robbins | 13 Feb 06:41
Picon

Why both tools_bb and tools_bjam?

Hi,

Anyone know the reason that "run.py" checks out the bjam sources twice?
One in "tools_bjam" and one in "tools_bb/engine"?

Snip of run.py output:

# Getting Boost.Build v2...
# Executing SVN command "svn --non-interactive co
http://svn.boost.org/svn/boost/trunk/tools/build/v2 tools_bb"
Checked out revision 77003.
# Getting Boost.Jam...
# Executing SVN command "svn --non-interactive co
http://svn.boost.org/svn/boost/trunk/tools/build/v2/engine tools_bjam"
Checked out revision 77003.

Thanks,
-Steve
_______________________________________________
Boost-Testing mailing list
Boost-Testing <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-testing

Gmane