Skip to content

Commit

Permalink
Correction for false positive vector test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed May 17, 2024
1 parent 49d4f13 commit a9bfef5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test_conformance/printf/test_printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int doTest(cl_command_queue queue, cl_context context,
const unsigned int testId, const unsigned int testNum,
cl_device_id device)
{
int err = CL_SUCCESS;
int err = TEST_FAIL;
for (unsigned formatNum = 0; formatNum
< allTestCase[testId]->_genParameters[testNum].genericFormats.size();
formatNum++)
Expand Down
12 changes: 6 additions & 6 deletions test_conformance/printf/util_printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,27 +780,27 @@ std::vector<printDataGenParameters> printVectorGenParameters = {

//(Minimum)Two-wide,two positions after decimal

{ {}, "(1.0f,2.0f,3.0f,4.0f)", "%2.2", "hlf", "float", "4" },
{ { "" }, "(1.0f,2.0f,3.0f,4.0f)", "%2.2", "hlf", "float", "4" },

// Alternative form,uchar argument

{ {}, "(0xFA,0xFB)", "%#", "hhx", "uchar", "2" },
{ { "" }, "(0xFA,0xFB)", "%#", "hhx", "uchar", "2" },

// Alternative form,ushort argument

{ {}, "(0x1234,0x8765)", "%#", "hx", "ushort", "2" },
{ { "" }, "(0x1234,0x8765)", "%#", "hx", "ushort", "2" },

// Alternative form,uint argument

{ {}, "(0x12345678,0x87654321)", "%#", "hlx", "uint", "2" },
{ { "" }, "(0x12345678,0x87654321)", "%#", "hlx", "uint", "2" },

// Alternative form,long argument

{ {}, "(12345678,98765432)", "%", "ld", "long", "2" },
{ { "" }, "(12345678,98765432)", "%", "ld", "long", "2" },

//(Minimum)Two-wide,two positions after decimal

{ {}, "(1.0h,2.0h,3.0h,4.0h)", "%2.2", "hf", "half", "4" }
{ { "" }, "(1.0h,2.0h,3.0h,4.0h)", "%2.2", "hf", "half", "4" }
};

//------------------------------------------------------------
Expand Down

0 comments on commit a9bfef5

Please sign in to comment.