|
Boost : |
Subject: Re: [boost] [filesystem] temp_dir_path()
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2010-10-12 13:49:17
Jeff Flinn wrote:
> Stewart, Robert wrote:
> > Jeff Flinn wrote:
>
> > Did you test the various combinations of e-vars being set?
>
> Yes, manually(not within operations_test.cpp) on mac by
> setting/unsetting the environment vars, not on windows though
> as I've not been able to make GetTempPath to fail. Not sure if
> mucking with the environ is acceptable to Beman's tests.
I'm assuming that temp_dir_path()'s test code would be in a
separate executable, so that wouldn't be an issue.
> > How are you testing the error handling code?
>
> Same as above. Any thoughts on how to proceed?
Use setenv() and unsetenv() to modify the environment and run the test to verify you get the expected results.
Set each of the e-vars singly, in turn, and test with each.
Set each pair of e-vars, in turn, and verify the results for each.
Etc.
Set just TMPDIR to an invalid, but non-empty, pathname and test for the expected error.
_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP http://www.sig.com
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk