diff mbox

[4/5] odp_shm_test.c: update output format

Message ID 1407274197-44498-4-git-send-email-mike.holmes@linaro.org
State Rejected
Headers show

Commit Message

Mike Holmes Aug. 5, 2014, 9:29 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 test/api_test/odp_shm_test.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Anders Roxell Aug. 7, 2014, 10:39 p.m. UTC | #1
On 2014-08-05 17:29, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>  test/api_test/odp_shm_test.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/test/api_test/odp_shm_test.c b/test/api_test/odp_shm_test.c
> index 318d662..df00549 100644
> --- a/test/api_test/odp_shm_test.c
> +++ b/test/api_test/odp_shm_test.c
> @@ -41,8 +41,10 @@ int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
>  {
>  	pthrd_arg thrdarg;
>  
> -	if (odp_test_global_init() != 0)
> +	if (odp_test_global_init() != 0) {
> +		printf("%s Result:fail\n", "odp_shm");

Can't we do as you did in "[PATCH 3/5] test: odp_ring update output
format"
printf("odp_shm Result:fail\n")

>  		return -1;
> +	}
>  
>  	odp_print_system_info();
>  
> @@ -57,5 +59,7 @@ int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
>  
>  	odp_test_thread_exit(&thrdarg);
>  
> +	printf("%s Result:pass\n", "odp_shm");

Same as the above comment except the pass... =)

> +

Not needed

>  	return 0;
>  }
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/test/api_test/odp_shm_test.c b/test/api_test/odp_shm_test.c
index 318d662..df00549 100644
--- a/test/api_test/odp_shm_test.c
+++ b/test/api_test/odp_shm_test.c
@@ -41,8 +41,10 @@  int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
 {
 	pthrd_arg thrdarg;
 
-	if (odp_test_global_init() != 0)
+	if (odp_test_global_init() != 0) {
+		printf("%s Result:fail\n", "odp_shm");
 		return -1;
+	}
 
 	odp_print_system_info();
 
@@ -57,5 +59,7 @@  int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
 
 	odp_test_thread_exit(&thrdarg);
 
+	printf("%s Result:pass\n", "odp_shm");
+
 	return 0;
 }