| 1770 | static const char sp_stdout_text[] = "stdout-only\n"; |
| 1771 | |
| 1772 | static void sp_stdout_payload(unsigned char bytes[SP_STDOUT_BYTES]) { |
| 1773 | for (int i = 0; i < SP_STDOUT_BYTES; i++) |
| 1774 | bytes[i] = (unsigned char)('a' + i % 26); |
| 1775 | bytes[0] = 'B'; |
| 1776 | bytes[1] = '\0'; |
| 1777 | bytes[2] = '\r'; |
| 1778 | bytes[3] = '\n'; |
| 1779 | bytes[4] = '\n'; |
| 1780 | bytes[1022] = 'X'; |
| 1781 | bytes[1023] = '\r'; |
| 1782 | bytes[1024] = '\n'; |
| 1783 | bytes[2048] = '\0'; |
| 1784 | bytes[SP_STDOUT_BYTES - 1] = 'Z'; /* final byte has no newline */ |
| 1785 | } |
| 1786 | |
| 1787 | /* Called before normal harness setup. Normal entry remembers argv[0], whose |
| 1788 | * storage lasts through main; the private exact argv grammar never runs suites. */ |
no outgoing calls
no test coverage detected