| 404 | } |
| 405 | |
| 406 | QByteArray createCode(const QByteArray& prefix, const int functions) |
| 407 | { |
| 408 | QByteArray code; |
| 409 | code += "#ifndef " + prefix + "_H\n"; |
| 410 | code += "#define " + prefix + "_H\n"; |
| 411 | for (int i = 0; i < functions; ++i) { |
| 412 | code += "void myFunc_" + prefix + "(int arg1, char arg2, const char* arg3);\n"; |
| 413 | } |
| 414 | code += "#endif\n"; |
| 415 | return code; |
| 416 | } |
| 417 | |
| 418 | void TestDUChain::testIncludeLocking() |
| 419 | { |