Lines Matching defs:terminator
725 // INFO_LOG_LENGTH is 0 by default and it includes null-terminator
751 GLint written = 0; // written does not include null terminator
765 // check null-terminator, either at end of buffer or at buffer[written]
766 const char* terminator = &buffer[DE_LENGTH_OF_ARRAY(buffer) - 1];
768 terminator = &buffer[written];
770 if (*terminator != '\0')
772 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator, got " << (int)*terminator << TestLog::EndMessage;
774 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log terminator");
793 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator, got " << (int)buffer[0] << TestLog::EndMessage;
795 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log terminator");
816 // SHADER_SOURCE_LENGTH does include 0-terminator
830 const GLint referenceLength = (GLint)std::string(brokenShader).length() + 1; // including the null terminator
850 const GLint referenceLength = 2 * (GLint)std::string(brokenShader).length() + 1; // including the null terminator
864 GLint written = 0; // not inluding null-terminator
879 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator at " << referenceLength << TestLog::EndMessage;
881 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "did not get a null terminator");
901 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator; got=" << int(buffer[0]) << ", char=" << buffer[0] << TestLog::EndMessage;
903 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid terminator");
1259 if (logLength != 0 && written+1 != logLength) // INFO_LOG_LENGTH contains 0-terminator
1267 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator at index " << written << TestLog::EndMessage;
1269 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "missing null terminator");
1282 if (logLength != 0 && written+1 != logLength) // INFO_LOG_LENGTH contains 0-terminator
1290 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator at index " << written << TestLog::EndMessage;
1292 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "missing null terminator");
1529 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_UNIFORM_MAX_LENGTH, (GLint)std::string("uniformNameWithLength23").length() + 1); // including a null terminator
1553 if (referenceLength != uniformNameLen) // uniformNameLen is with null terminator
1568 GLint written = 0; // null terminator not included
1781 verifyProgramParam (m_testCtx, *this, program, GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH, (GLint)std::string("longlongUniformBlockName").length() + 1); // including a null terminator
1822 verifyActiveUniformBlockParam(m_testCtx, *this, program, longlongUniformBlockIndex, GL_UNIFORM_BLOCK_NAME_LENGTH, (GLint)std::string("longlongUniformBlockName").length() + 1); // including null-terminator
1823 verifyActiveUniformBlockParam(m_testCtx, *this, program, shortUniformBlockIndex, GL_UNIFORM_BLOCK_NAME_LENGTH, (GLint)std::string("shortUniformBlockName").length() + 1); // including null-terminator
2039 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator" << TestLog::EndMessage;
2041 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid string terminator");
2109 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, (GLint)std::string("longInputAttributeName").length() + 1); // does include null-terminator
2124 checkIntEquals(m_testCtx, written, (GLint)std::string("longInputAttributeName").length()); // does NOT include null-terminator
2128 checkIntEquals(m_testCtx, written, (GLint)std::string("shortName").length()); // does NOT include null-terminator