Boost logo

Boost-Build :

Subject: Re: [Boost-build] bpl-test sources list being automatically sorted?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-07-25 05:50:15

On Monday 13 July 2009 Haoyu Bai wrote:

> Hi,
> When working on Boost.Python I got a problem with bpl-test, the
> Boost.Build rule for declaring Boost.Python test case target. In
> summary, when I call "bjam polymorphism2_auto_ptr" to run the test
> case, it can run correctly. But when I call "bjam" to run the entire
> test suite, the test case "polymorphism2_auto_ptr" will be failed
> because the order of the sources was changed.
> In detail, I have a test case entry:
> [ bpl-test polymorphism2_auto_ptr
> : polymorphism2_auto_ptr.cpp
> ]
> The first file, "", is the file that will be
> run by the Python interpreter, and the second one ""
> is a dependency. So "" should be keep as the
> first one. But when calling with "bjam" to run the entire test sutie,
> the order of these 3 files is changed. "" will become
> the first file and cause this test case fail.
> It seems the sources list get sorted when calling "bjam", but is not
> when calling "bjam polymorphism2_auto_ptr". So is this a feature or a
> bug, or something wrong in my Boost.Build usage? How can I avoid the
> unwanted sort?

I am unable to reproduce this problem, and code inspection does not
reveal any place where source would be sorted or otherwise rearranged.
Can you give me instructions how to reproduce this? If you point me
at some SVN branches, that's fine, but please make sure this reproduces
in unmodified state of some revision -- and tell me that revision.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at