Use unique tmp file to allow parallel printf tests (#213)

Parallel printf tests fail because they use the same file tmp
to capture OpenCL kernel outputs. This patch solves this problem by
using a unique file for each process.
This commit is contained in:
Wenju He
2019-04-26 01:12:24 +08:00
committed by Kévin Petit
parent a99ef043be
commit 25be90dba2
3 changed files with 66 additions and 34 deletions

View File

@@ -60,15 +60,15 @@
//-----------------------------------------
enum Type
{
INT,
FLOAT,
OCTAL,
UNSIGNED,
HEXADEC,
CHAR,
STRING,
VECTOR,
ADDRESS_SPACE,
TYPE_INT,
TYPE_FLOAT,
TYPE_OCTAL,
TYPE_UNSIGNED,
TYPE_HEXADEC,
TYPE_CHAR,
TYPE_STRING,
TYPE_VECTOR,
TYPE_ADDRESS_SPACE,
TYPE_COUNT
};