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:
> 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.py polymorphism2.py polymorphism2_auto_ptr.cpp
> The first file, "polymorphism2_auto_ptr.py", is the file that will be
> run by the Python interpreter, and the second one "polymorphism2.py"
> is a dependency. So "polymorphism2_auto_ptr.py" 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. "polymorphism2.py" 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.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk