Get rid of threadTesting.h (#1604)

It only contains a pointer type definition for test functions that
really ought to be provided by testHarness.h.

Signed-off-by: Kévin Petit <kpet@free.fr>

Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
Kévin Petit
2023-01-14 15:18:27 +00:00
committed by GitHub
parent 896f43615d
commit 1eeb10296f
17 changed files with 12 additions and 49 deletions

View File

@@ -15,7 +15,6 @@
//
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
extern int create_program_and_kernel(const char *source,

View File

@@ -15,7 +15,6 @@
//
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
extern int create_program_and_kernel(const char *source, const char *kernel_name, cl_program *program_ret, cl_kernel *kernel_ret);

View File

@@ -34,7 +34,6 @@
#include "harness/imageHelpers.h"
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include "harness/mt19937.h"

View File

@@ -38,7 +38,6 @@
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include "harness/mt19937.h"

View File

@@ -15,7 +15,6 @@
//
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/testHarness.h"
#include "harness/mt19937.h"

View File

@@ -32,7 +32,6 @@
#include "harness/imageHelpers.h"
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include "harness/mt19937.h"

View File

@@ -15,7 +15,6 @@
//
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include "harness/mt19937.h"

View File

@@ -39,7 +39,7 @@ Agreement as executed between Khronos and the recipient.
class baseTestClass {
public:
baseTestClass() {}
virtual basefn getFunction() = 0;
virtual test_function_pointer getFunction() = 0;
};
class spirvTestsRegistry {
@@ -72,11 +72,11 @@ template <typename T> T *createAndRegister(const char *name, Version version)
cl_command_queue queue, int num_elements); \
class test_##name##_class : public baseTestClass { \
private: \
basefn fn; \
test_function_pointer fn; \
\
public: \
test_##name##_class(): fn(test_##name) {} \
basefn getFunction() { return fn; } \
test_function_pointer getFunction() { return fn; } \
}; \
test_##name##_class *var_##name = \
createAndRegister<test_##name##_class>(#name, version); \
@@ -97,4 +97,4 @@ struct spec_const
int get_program_with_il(clProgramWrapper &prog, const cl_device_id deviceID,
const cl_context context, const char *prog_name,
spec_const spec_const_def = spec_const());
std::vector<unsigned char> readSPIRV(const char *file_name);
std::vector<unsigned char> readSPIRV(const char *file_name);

View File

@@ -20,7 +20,6 @@
#include "harness/kernelHelpers.h"
#include "harness/errorHelpers.h"
#include "harness/conversions.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/mt19937.h"

View File

@@ -15,7 +15,6 @@
//
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include "harness/mt19937.h"

View File

@@ -15,7 +15,6 @@
//
#include "harness/errorHelpers.h"
#include "harness/kernelHelpers.h"
#include "harness/threadTesting.h"
#include "harness/typeWrappers.h"
#include "harness/conversions.h"
#include "harness/mt19937.h"