You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Gordon Smith <go...@adobe.com> on 2012/12/21 23:43:23 UTC

Falcon functional tests

My user directory is getting littered with files like airframework236875180568976546.swc from the functional tests that compile SWCs. Did somebody change the way they compile, or has this been happening since I wrote the test infrastructure?

- Gordon


RE: Falcon functional tests

Posted by Gordon Smith <go...@adobe.com>.
Let's try your fix.

- Gordon

-----Original Message-----
From: Chema Balsas [mailto:jbalsas@gmail.com] 
Sent: Friday, December 21, 2012 3:15 PM
To: flex-dev@incubator.apache.org
Subject: Re: Falcon functional tests

What I can't quite understand is why the temp files are being created inside your user directory...

2012/12/22 Chema Balsas <jb...@gmail.com>

> Yep, I'd say this has been going since the beggining... in my case, 
> they're getting stored as somewhere like
>
>
> /var/folders/x6/926_x3v952x05jkwpg4rq5400000gn/T/apache656204672369532
> 5653.swc It seems this is the usual behavior, and is solved by 
> invoking the
> deleteOnExit() method on the created temporary file. I've checked, and 
> changing
>
>  output = File.createTempFile(outputSwcName, 
> ".swc").getAbsolutePath();
>
> to
> File tmpFile = File.createTempFile(outputSwcName, ".swc"); 
> tmpFile.deleteOnExit(); output = tmpFile.getAbsolutePath();
>
> does remove the temporary swcs.
>
> If you're not doing anything else with the tests, I can commit this 
> easy fix.
>
> Cheers,
> Chema
>
> 2012/12/21 Gordon Smith <go...@adobe.com>
>
>> My user directory is getting littered with files like 
>> airframework236875180568976546.swc from the functional tests that 
>> compile SWCs. Did somebody change the way they compile, or has this 
>> been happening since I wrote the test infrastructure?
>>
>> - Gordon
>>
>>
>

Re: Falcon functional tests

Posted by Chema Balsas <jb...@gmail.com>.
What I can't quite understand is why the temp files are being created
inside your user directory...

2012/12/22 Chema Balsas <jb...@gmail.com>

> Yep, I'd say this has been going since the beggining... in my case,
> they're getting stored as somewhere like
>
>
> /var/folders/x6/926_x3v952x05jkwpg4rq5400000gn/T/apache6562046723695325653.swc
> It seems this is the usual behavior, and is solved by invoking the
> deleteOnExit() method on the created temporary file. I've checked, and
> changing
>
>  output = File.createTempFile(outputSwcName, ".swc").getAbsolutePath();
>
> to
> File tmpFile = File.createTempFile(outputSwcName, ".swc");
> tmpFile.deleteOnExit();
> output = tmpFile.getAbsolutePath();
>
> does remove the temporary swcs.
>
> If you're not doing anything else with the tests, I can commit this easy
> fix.
>
> Cheers,
> Chema
>
> 2012/12/21 Gordon Smith <go...@adobe.com>
>
>> My user directory is getting littered with files like
>> airframework236875180568976546.swc from the functional tests that compile
>> SWCs. Did somebody change the way they compile, or has this been happening
>> since I wrote the test infrastructure?
>>
>> - Gordon
>>
>>
>

Re: Falcon functional tests

Posted by Chema Balsas <jb...@gmail.com>.
Yep, I'd say this has been going since the beggining... in my case, they're
getting stored as somewhere like

/var/folders/x6/926_x3v952x05jkwpg4rq5400000gn/T/apache6562046723695325653.swc
It seems this is the usual behavior, and is solved by invoking the
deleteOnExit() method on the created temporary file. I've checked, and
changing

 output = File.createTempFile(outputSwcName, ".swc").getAbsolutePath();

to
File tmpFile = File.createTempFile(outputSwcName, ".swc");
tmpFile.deleteOnExit();
output = tmpFile.getAbsolutePath();

does remove the temporary swcs.

If you're not doing anything else with the tests, I can commit this easy
fix.

Cheers,
Chema

2012/12/21 Gordon Smith <go...@adobe.com>

> My user directory is getting littered with files like
> airframework236875180568976546.swc from the functional tests that compile
> SWCs. Did somebody change the way they compile, or has this been happening
> since I wrote the test infrastructure?
>
> - Gordon
>
>