public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [POSIX][PATCH]Some building error at pi_test cases.
@ 2010-10-28  1:56 Bian Naimeng
  2010-11-02  1:09 ` Bian Naimeng
  0 siblings, 1 reply; 3+ messages in thread
From: Bian Naimeng @ 2010-10-28  1:56 UTC (permalink / raw)
  To: yanegomi; +Cc: ltp-list

Commit 5f2ba92bdbef089bad74906fd8a86b54617f7878 make some building error.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>

---
 .../functional/threads/pi_test/pitest-2.c          |    2 +-
 .../functional/threads/pi_test/pitest-3.c          |    4 ++--
 .../functional/threads/pi_test/pitest-4.c          |    4 ++--
 .../functional/threads/pi_test/pitest-6.c          |    4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
index 62f1f45..0a96377 100644
--- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
+++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
@@ -235,7 +235,7 @@ void *thread_tb2(void *arg)
 	DPRINTF(stdout, "#EVENT %f TB2 Thread Started\n",
 		seconds_read() - base_time); 
 	
-	boost_time.tv_sec = time(NULL) + *(time_t*)timeoutsec;
+	boost_time.tv_sec = time(NULL) + *(time_t*)arg;
 	boost_time.tv_nsec = 0;
 
 	t0 = seconds_read();
diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
index fe0c886..58d7a4a 100644
--- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
+++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
@@ -219,7 +219,7 @@ void *thread_tb1(void *arg)
 	DPRINTF(stdout, "#EVENT %f Thread TB1 Started\n", 
 		seconds_read() - base_time);
 
-	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
+	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
 	boost_time.tv_nsec = 0;
 
 	t0 = seconds_read();
@@ -247,7 +247,7 @@ void *thread_tb2(void *arg)
 	DPRINTF(stdout, "#EVENT %f Thread TB2 Started\n", 
 		seconds_read() - base_time);
 
-	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
+	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
 	boost_time.tv_nsec = 0;
 	t0 = seconds_read();
 	rc = pthread_mutex_timedlock(&mutex2, &boost_time);	
diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
index a042dbf..077f966 100644
--- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
+++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
@@ -187,7 +187,7 @@ void *thread_tb1(void *arg)
 
 	pthread_mutex_lock(&mutex2);
  
-	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
+	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
 	boost_time.tv_nsec = 0;
 	t0 = seconds_read();
 	rc = pthread_mutex_timedlock(&mutex1, &boost_time);	
@@ -218,7 +218,7 @@ void *thread_tb2(void *arg)
 	DPRINTF(stdout, "#EVENT %f Thread TB2 Started\n", 
 		seconds_read() - base_time);
 
-	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
+	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
 	boost_time.tv_nsec = 0;
 
 	t0 = seconds_read();
diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
index 6ebb003..2f2272b 100644
--- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
+++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
@@ -204,9 +204,9 @@ void *thread_tb(void *arg)
 	DPRINTF(stderr,"Thread TB: started\n");
 	
 	DPRINTF(stdout, "#EVENT %f TB Started, waiting for mutex for %lu s\n", 
-		seconds_read() - base_time, timeoutsec);
+		seconds_read() - base_time, *(unsigned long*)arg);
 
-	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
+	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
 	boost_time.tv_nsec = 0;
 
 	t0 = seconds_read();
-- 
1.7.0.4






------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [POSIX][PATCH]Some building error at pi_test cases.
  2010-10-28  1:56 [LTP] [POSIX][PATCH]Some building error at pi_test cases Bian Naimeng
@ 2010-11-02  1:09 ` Bian Naimeng
  2010-11-02  2:00   ` Garrett Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: Bian Naimeng @ 2010-11-02  1:09 UTC (permalink / raw)
  To: yanegomi; +Cc: ltp-list

Hi Garrett,

  Would you like to pick up this patch?  ^_^

Best Regards
  Bian

> Commit 5f2ba92bdbef089bad74906fd8a86b54617f7878 make some building error.
> 
> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> 
> ---
>  .../functional/threads/pi_test/pitest-2.c          |    2 +-
>  .../functional/threads/pi_test/pitest-3.c          |    4 ++--
>  .../functional/threads/pi_test/pitest-4.c          |    4 ++--
>  .../functional/threads/pi_test/pitest-6.c          |    4 ++--
>  4 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
> index 62f1f45..0a96377 100644
> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
> @@ -235,7 +235,7 @@ void *thread_tb2(void *arg)
>  	DPRINTF(stdout, "#EVENT %f TB2 Thread Started\n",
>  		seconds_read() - base_time); 
>  	
> -	boost_time.tv_sec = time(NULL) + *(time_t*)timeoutsec;
> +	boost_time.tv_sec = time(NULL) + *(time_t*)arg;
>  	boost_time.tv_nsec = 0;
>  
>  	t0 = seconds_read();
> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
> index fe0c886..58d7a4a 100644
> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
> @@ -219,7 +219,7 @@ void *thread_tb1(void *arg)
>  	DPRINTF(stdout, "#EVENT %f Thread TB1 Started\n", 
>  		seconds_read() - base_time);
>  
> -	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
> +	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>  	boost_time.tv_nsec = 0;
>  
>  	t0 = seconds_read();
> @@ -247,7 +247,7 @@ void *thread_tb2(void *arg)
>  	DPRINTF(stdout, "#EVENT %f Thread TB2 Started\n", 
>  		seconds_read() - base_time);
>  
> -	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
> +	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>  	boost_time.tv_nsec = 0;
>  	t0 = seconds_read();
>  	rc = pthread_mutex_timedlock(&mutex2, &boost_time);	
> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
> index a042dbf..077f966 100644
> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
> @@ -187,7 +187,7 @@ void *thread_tb1(void *arg)
>  
>  	pthread_mutex_lock(&mutex2);
>   
> -	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
> +	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>  	boost_time.tv_nsec = 0;
>  	t0 = seconds_read();
>  	rc = pthread_mutex_timedlock(&mutex1, &boost_time);	
> @@ -218,7 +218,7 @@ void *thread_tb2(void *arg)
>  	DPRINTF(stdout, "#EVENT %f Thread TB2 Started\n", 
>  		seconds_read() - base_time);
>  
> -	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
> +	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>  	boost_time.tv_nsec = 0;
>  
>  	t0 = seconds_read();
> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
> index 6ebb003..2f2272b 100644
> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
> @@ -204,9 +204,9 @@ void *thread_tb(void *arg)
>  	DPRINTF(stderr,"Thread TB: started\n");
>  	
>  	DPRINTF(stdout, "#EVENT %f TB Started, waiting for mutex for %lu s\n", 
> -		seconds_read() - base_time, timeoutsec);
> +		seconds_read() - base_time, *(unsigned long*)arg);
>  
> -	boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
> +	boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>  	boost_time.tv_nsec = 0;
>  
>  	t0 = seconds_read();

-- 
Regards
Bian Naimeng


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [POSIX][PATCH]Some building error at pi_test cases.
  2010-11-02  1:09 ` Bian Naimeng
@ 2010-11-02  2:00   ` Garrett Cooper
  0 siblings, 0 replies; 3+ messages in thread
From: Garrett Cooper @ 2010-11-02  2:00 UTC (permalink / raw)
  To: Bian Naimeng; +Cc: ltp-list

    Will be committed momentarily.
Thanks!
-Garrett

On Mon, Nov 1, 2010 at 6:09 PM, Bian Naimeng <biannm@cn.fujitsu.com> wrote:
> Hi Garrett,
>
>  Would you like to pick up this patch?  ^_^
>
> Best Regards
>  Bian
>
>> Commit 5f2ba92bdbef089bad74906fd8a86b54617f7878 make some building error.
>>
>> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
>>
>> ---
>>  .../functional/threads/pi_test/pitest-2.c          |    2 +-
>>  .../functional/threads/pi_test/pitest-3.c          |    4 ++--
>>  .../functional/threads/pi_test/pitest-4.c          |    4 ++--
>>  .../functional/threads/pi_test/pitest-6.c          |    4 ++--
>>  4 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
>> index 62f1f45..0a96377 100644
>> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
>> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-2.c
>> @@ -235,7 +235,7 @@ void *thread_tb2(void *arg)
>>       DPRINTF(stdout, "#EVENT %f TB2 Thread Started\n",
>>               seconds_read() - base_time);
>>
>> -     boost_time.tv_sec = time(NULL) + *(time_t*)timeoutsec;
>> +     boost_time.tv_sec = time(NULL) + *(time_t*)arg;
>>       boost_time.tv_nsec = 0;
>>
>>       t0 = seconds_read();
>> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
>> index fe0c886..58d7a4a 100644
>> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
>> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-3.c
>> @@ -219,7 +219,7 @@ void *thread_tb1(void *arg)
>>       DPRINTF(stdout, "#EVENT %f Thread TB1 Started\n",
>>               seconds_read() - base_time);
>>
>> -     boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
>> +     boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>>       boost_time.tv_nsec = 0;
>>
>>       t0 = seconds_read();
>> @@ -247,7 +247,7 @@ void *thread_tb2(void *arg)
>>       DPRINTF(stdout, "#EVENT %f Thread TB2 Started\n",
>>               seconds_read() - base_time);
>>
>> -     boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
>> +     boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>>       boost_time.tv_nsec = 0;
>>       t0 = seconds_read();
>>       rc = pthread_mutex_timedlock(&mutex2, &boost_time);
>> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
>> index a042dbf..077f966 100644
>> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
>> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-4.c
>> @@ -187,7 +187,7 @@ void *thread_tb1(void *arg)
>>
>>       pthread_mutex_lock(&mutex2);
>>
>> -     boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
>> +     boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>>       boost_time.tv_nsec = 0;
>>       t0 = seconds_read();
>>       rc = pthread_mutex_timedlock(&mutex1, &boost_time);
>> @@ -218,7 +218,7 @@ void *thread_tb2(void *arg)
>>       DPRINTF(stdout, "#EVENT %f Thread TB2 Started\n",
>>               seconds_read() - base_time);
>>
>> -     boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
>> +     boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>>       boost_time.tv_nsec = 0;
>>
>>       t0 = seconds_read();
>> diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
>> index 6ebb003..2f2272b 100644
>> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
>> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-6.c
>> @@ -204,9 +204,9 @@ void *thread_tb(void *arg)
>>       DPRINTF(stderr,"Thread TB: started\n");
>>
>>       DPRINTF(stdout, "#EVENT %f TB Started, waiting for mutex for %lu s\n",
>> -             seconds_read() - base_time, timeoutsec);
>> +             seconds_read() - base_time, *(unsigned long*)arg);
>>
>> -     boost_time.tv_sec = time(NULL) + *(time_t *)timeoutsec;
>> +     boost_time.tv_sec = time(NULL) + *(time_t *)arg;
>>       boost_time.tv_nsec = 0;
>>
>>       t0 = seconds_read();
>
> --
> Regards
> Bian Naimeng
>
>

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-02  2:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28  1:56 [LTP] [POSIX][PATCH]Some building error at pi_test cases Bian Naimeng
2010-11-02  1:09 ` Bian Naimeng
2010-11-02  2:00   ` Garrett Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox