[PATCH] Remove environment variables from driver tests

Steven Wu stevenwu at apple.com
Wed Feb 4 17:35:14 PST 2015


Great. I am pretty sure none of the tests requires SDKROOT to pass. I will just remove the code that setup the environment and add it to blacklist.

> On Feb 4, 2015, at 3:54 PM, Daniel Dunbar <daniel at zuster.org> wrote:
> 
> Nope...
> 
>  - Daniel
> 
> On Wed, Feb 4, 2015 at 10:16 AM, Steven Wu <stevenwu at apple.com <mailto:stevenwu at apple.com>> wrote:
> cc Daniel. Do you remember the reason why you add SDKROOT to lit for clang?
> 
> Steven
> 
>> On Feb 3, 2015, at 2:10 PM, Steven Wu <stevenwu at apple.com <mailto:stevenwu at apple.com>> wrote:
>> 
>> Hi Reid
>> 
>> Thanks for the suggestion. I am aware of the setting in lit.cfg but I assume some of the environment variables I want to remove from the driver tests might be useful in some other cases. 
>> For example, SDKROOT is setup by lit.cfg. Although I am not aware of any clang tests will fail on mac os if this environment is not set (maybe compiler_rt really need it), setting that environment to the wrong path will definitely fail many driver tests. I am just being cautious by removing them only from driver tests, but I can try remove them from all clang tests and see what will happen.
>> 
>> Steven
>>  
>>> On Feb 3, 2015, at 1:55 PM, Reid Kleckner <rnk at google.com <mailto:rnk at google.com>> wrote:
>>> 
>>> We already have this mechanism in test/lit.cfg. Feel free to add some more variables.
>>> 
>>> On Tue, Feb 3, 2015 at 1:17 PM, Steven Wu <stevenwu at apple.com <mailto:stevenwu at apple.com>> wrote:
>>> Ping. This is intended to avoid driver tests gets broken by the unexpected environment variable. They can be accidentally set by user or bots and report false positive in driver tests.
>>> 
>>> 
>>> http://reviews.llvm.org/D7135 <http://reviews.llvm.org/D7135>
>>> 
>>> EMAIL PREFERENCES
>>>   http://reviews.llvm.org/settings/panel/emailpreferences/ <http://reviews.llvm.org/settings/panel/emailpreferences/>
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> cfe-commits mailing list
>>> cfe-commits at cs.uiuc.edu <mailto:cfe-commits at cs.uiuc.edu>
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits <http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits>
>>> 
>> 
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu <mailto:cfe-commits at cs.uiuc.edu>
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits <http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150204/a7b9b416/attachment.html>


More information about the cfe-commits mailing list