Lines Matching defs:terminator
561 // INFO_LOG_LENGTH is 0 by default and it includes null-terminator
587 GLint written = 0; // written does not include null terminator
601 // check null-terminator, either at end of buffer or at buffer[written]
602 const char* terminator = &buffer[DE_LENGTH_OF_ARRAY(buffer) - 1];
604 terminator = &buffer[written];
606 if (*terminator != '\0')
608 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator, got " << (int)*terminator << TestLog::EndMessage;
610 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log terminator");
629 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator, got " << (int)buffer[0] << TestLog::EndMessage;
631 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log terminator");
654 // SHADER_SOURCE_LENGTH does include 0-terminator
668 const GLint referenceLength = (GLint)std::string(brokenShader).length() + 1; // including the null terminator
688 const GLint referenceLength = 2 * (GLint)std::string(brokenShader).length() + 1; // including the null terminator
702 GLint written = 0; // not inluding null-terminator
717 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator at " << referenceLength << TestLog::EndMessage;
719 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "did not get a null terminator");
739 m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator; got=" << int(buffer[0]) << ", char=" << buffer[0] << TestLog::EndMessage;
741 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid terminator");
1001 if (logLength != 0 && written+1 != logLength) // INFO_LOG_LENGTH contains 0-terminator
1237 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_UNIFORM_MAX_LENGTH, (GLint)std::string("uniformNameWithLength23").length() + 1); // including a null terminator
1253 GLint written = 0; // null terminator not included
1451 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, (GLint)std::string("longInputAttributeName").length() + 1); // does include null-terminator
1466 checkIntEquals(m_testCtx, written, (GLint)std::string("longInputAttributeName").length()); // does NOT include null-terminator
1470 checkIntEquals(m_testCtx, written, (GLint)std::string("shortName").length()); // does NOT include null-terminator