[PATCH wayland] tests: rename temporary files

Kristian Høgsberg hoegsberg at gmail.com
Mon Dec 3 07:10:47 PST 2012


On Mon, Dec 03, 2012 at 04:58:25PM +0200, Pekka Paalanen wrote:
> This is libwayland, not weston, so call the temporary files
> wayland-tests-*, not weston-tests-*.
> 
> This is a candidate for the stable branch.

Yeah, thanks, would've made it easier to track this leak down.

Kristian

> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> ---
>  tests/connection-test.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/connection-test.c b/tests/connection-test.c
> index 45744a0..1ac88d2 100644
> --- a/tests/connection-test.c
> +++ b/tests/connection-test.c
> @@ -425,7 +425,7 @@ marshal_demarshal(struct marshal_data *data,
>  TEST(connection_marshal_demarshal)
>  {
>  	struct marshal_data data;
> -	char f[] = "/tmp/weston-tests-XXXXXX";
> +	char f[] = "/tmp/wayland-tests-XXXXXX";
>  
>  	setup_marshal_data(&data);
>  
> @@ -478,7 +478,7 @@ TEST(connection_marshal_alot)
>  	 * for both regular data an fds. */
>  
>  	for (i = 0; i < 2000; i++) {
> -		strcpy(f, "/tmp/weston-tests-XXXXXX");
> +		strcpy(f, "/tmp/wayland-tests-XXXXXX");
>  		data.value.h = mkstemp(f);
>  		assert(data.value.h >= 0);
>  		unlink(f);
> -- 
> 1.7.8.6
> 


More information about the wayland-devel mailing list