$OpenBSD: patch-tests_auto_corelib_tools_qbytearray_tst_qbytearray_cpp,v 1.2 2017/07/17 08:34:37 zhuk Exp $
Unbreak tests since we avoid strcpy.
Index: tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp
--- tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp.orig
+++ tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp
@@ -72,7 +72,6 @@ private slots:
     void qvsnprintf();
     void qstrlen();
     void qstrnlen();
-    void qstrcpy();
     void qstrncpy();
     void qstricmp_data();
     void qstricmp();
@@ -789,19 +788,6 @@ void tst_QByteArray::qstrnlen()
     QCOMPARE(::qstrnlen(src, 19), (uint)19);
     QCOMPARE(::qstrnlen(src, 21), (uint)20);
     QCOMPARE(::qstrnlen(src, 20), (uint)20);
-}
-
-void tst_QByteArray::qstrcpy()
-{
-    const char *src = "Something about ... \0 a string.";
-    const char *expected = "Something about ... ";
-    char dst[128];
-
-    QCOMPARE(::qstrcpy(0, 0), (char*)0);
-    QCOMPARE(::qstrcpy(dst, 0), (char*)0);
-
-    QCOMPARE(::qstrcpy(dst ,src), (char *)dst);
-    QCOMPARE((char *)dst, const_cast<char *>(expected));
 }
 
 void tst_QByteArray::qstrncpy()
