Fix expectation and types in acc_get_property tests
authorFrederik Harwath <frederik@codesourcery.com>
Mon, 20 Jan 2020 13:07:03 +0000 (14:07 +0100)
committerFrederik Harwath <frederik@codesourcery.com>
Fri, 24 Jan 2020 08:14:51 +0000 (09:14 +0100)
commit4bd03ed69bd789278a0286017b692f49052ffe5c
tree97025ace807fa96ead5bd4f56ac46bd7a9f77a41
parent9adea9392bdaf9518d6f9cfce3ac0f247f3154d2
Fix expectation and types in acc_get_property tests

* Weaken expectation concerning acc_property_free_memory.
  Do not expect the value returned by CUDA since that value might have
  changed in the meantime.
* Use correct type for the results of calls to acc_get_property in tests.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
(expect_device_properties): Remove "expected_free_mem" argument,
change "expected_total_mem" argument type to size_t;
change types of acc_get_property results to size_t,
adapt format strings.
* testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
Use %zu instead of %zd to print size_t values.
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
rename to ...
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
rename to ...
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c [moved from libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c with 63% similarity]
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c [moved from libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c with 86% similarity]
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property.c