Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Test] [1.38] --random runtime parameter
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-13 23:16:18


AMDG

Greg Christopher wrote:
> I am wondering what "non random" means (--random-0).
>
> We are seeing the test framework behave such that with --random-0, it seems to do the tests in an order and stick with that order, but I'm not sure how it's deciding the order. If we re-link the test program, it seems to do them in a different order.
>
> I would like to figure out how to make this deterministic without losing the benefit of not having to create my own test execution driver. I would think that non random would be in alphabetical order of test_case_name (we are doing auto registration) but that's not what we're seeing. Non-random seems to indicate maybe some kind of static initialization order, which is random.
>

You are correct that the order is effectively the static initialization
order.
This is not completely random. Test cases in the same translation unit
should be executed in order.

In Christ,
Steven Watanabe

P.S. Please start a new thread instead of replying to an existing thread.


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