Boost logo

Boost Users :

Subject: [Boost-users] boost unit tests and command line args
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-05-12 18:28:36


I have some unit tests that all use BOOST_AUTO_TEST_CASE. Is there a way
for me to hook into the main function before any of my test cases are run to
perform initialization, involving the command line arguments that were
passed to the executable? Currently there is no main function, it's defined
inside the boost headers, and I don't see an obvious way of hooking into it.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net