tst_shell_mac.cpp
1 #include "tst_shell.h" 2 3 #include <QTest> 4 5 namespace NeovimQt { 6 7 QClipboard::Mode GetClipboardMode(char /*reg*/) noexcept 8 { 9 return QClipboard::Clipboard; 10 } 11 12 QString GetPlatformTestFont() noexcept 13 { 14 return QStringLiteral("Monaco"); 15 } 16 17 QStringList BinaryAndArgumentsNoForkWithCommand(const QString& command) noexcept 18 { 19 return { NVIM_QT_BINARY, "--nofork", "--", "-c", command }; 20 } 21 22 void AddPlatformSpecificExitCodeCases() noexcept 23 { 24 // On UNIX-like operating systems, the child exit code is represented as a 25 // 8-bit integer. Therefore 256 overflows and becomes 0. 26 // Reference: man for wait(2). 27 QTest::newRow("Exit Code Overflow: 256cq") 28 << 256 << 0 << QByteArray("256cq"); 29 } 30 31 } // namespace NeovimQt