summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-11-27 14:53:07 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-12-01 15:41:45 +0000
commit712964ef2485a2fc66a791209cb8ab5e3f4ca0d0 (patch)
tree9ebdeec2cae4770f8317b7e5d5245a79c3a2f655 /tests
parent276ddf9f87ee513440bbb72473b48b69eb0319a5 (diff)
downloadqbs-712964ef2485a2fc66a791209cb8ab5e3f4ca0d0.tar.gz
Add missing std:: namespace for all functions from <cstdio> library
Change-Id: Ia5c14b86e5e0952dbebf103c5355f49e41158cba Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/api/testdata/build-properties-source/main.cpp4
-rw-r--r--tests/auto/api/testdata/change-dependent-lib/main.cpp5
-rw-r--r--tests/auto/api/testdata/change-dependent-lib/mylib.cpp4
-rw-r--r--tests/auto/api/testdata/export-simple/lib1.cpp4
-rw-r--r--tests/auto/api/testdata/export-simple/main.cpp5
-rw-r--r--tests/auto/api/testdata/lib-same-source/main.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic1.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic2.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs-staticlibs/main.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs-staticlibs/static1.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs-staticlibs/static2.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs/lib1.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs/lib2.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs/lib3.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs/lib4.cpp4
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs/lib4.h2
-rw-r--r--tests/auto/api/testdata/link-dynamiclibs/main.cpp4
-rw-r--r--tests/auto/api/testdata/link-static-lib/main.cpp2
-rw-r--r--tests/auto/api/testdata/link-static-lib/mystaticlib.cpp5
-rw-r--r--tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic1.cpp4
-rw-r--r--tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic2.cpp4
-rw-r--r--tests/auto/api/testdata/link-staticlibs-dynamiclibs/main.cpp4
-rw-r--r--tests/auto/api/testdata/link-staticlibs-dynamiclibs/static1.cpp5
-rw-r--r--tests/auto/api/testdata/link-staticlibs-dynamiclibs/static2.cpp4
-rw-r--r--tests/auto/api/testdata/properties-blocks/main.cpp7
-rw-r--r--tests/auto/blackbox/testdata/distribution-include-paths/main.cpp2
-rw-r--r--tests/auto/blackbox/testdata/host-os-properties/main.cpp6
-rw-r--r--tests/auto/blackbox/testdata/ld/main.cpp5
-rw-r--r--tests/auto/blackbox/testdata/plugin-dependency/helper1.cpp4
-rw-r--r--tests/auto/blackbox/testdata/plugin-dependency/helper2.cpp4
-rw-r--r--tests/auto/blackbox/testdata/plugin-dependency/plugin1.cpp4
-rw-r--r--tests/auto/blackbox/testdata/plugin-dependency/plugin2.cpp4
-rw-r--r--tests/auto/blackbox/testdata/plugin-dependency/plugin3.cpp4
-rw-r--r--tests/auto/blackbox/testdata/plugin-dependency/plugin4.cpp4
-rw-r--r--tests/auto/blackbox/testdata/proper quoting/main.cpp10
-rw-r--r--tests/auto/blackbox/testdata/proper quoting/my static lib.cpp5
-rw-r--r--tests/auto/blackbox/testdata/symbolLinkMode/lib.cpp4
-rw-r--r--tests/auto/blackbox/testdata/symbolLinkMode/main.cpp8
-rw-r--r--tests/auto/blackbox/testdata/system-include-paths/main.cpp2
39 files changed, 85 insertions, 84 deletions
diff --git a/tests/auto/api/testdata/build-properties-source/main.cpp b/tests/auto/api/testdata/build-properties-source/main.cpp
index f830ee1fd..89ec55463 100644
--- a/tests/auto/api/testdata/build-properties-source/main.cpp
+++ b/tests/auto/api/testdata/build-properties-source/main.cpp
@@ -26,7 +26,7 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
#ifndef WORLD
# error WORLD is not defined
@@ -34,5 +34,5 @@
int main()
{
- puts("Hello " WORLD "!");
+ std::puts("Hello " WORLD "!");
}
diff --git a/tests/auto/api/testdata/change-dependent-lib/main.cpp b/tests/auto/api/testdata/change-dependent-lib/main.cpp
index 8ad414c46..9334da1ef 100644
--- a/tests/auto/api/testdata/change-dependent-lib/main.cpp
+++ b/tests/auto/api/testdata/change-dependent-lib/main.cpp
@@ -28,13 +28,12 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT int mylib_hello();
int main()
{
- puts("application says hello!");
+ std::puts("application says hello!");
return mylib_hello();
}
-
diff --git a/tests/auto/api/testdata/change-dependent-lib/mylib.cpp b/tests/auto/api/testdata/change-dependent-lib/mylib.cpp
index 28cb69f95..b8c3e9082 100644
--- a/tests/auto/api/testdata/change-dependent-lib/mylib.cpp
+++ b/tests/auto/api/testdata/change-dependent-lib/mylib.cpp
@@ -28,10 +28,10 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT int mylib_hello()
{
- puts("mylib says hello!");
+ std::puts("mylib says hello!");
return 0;
}
diff --git a/tests/auto/api/testdata/export-simple/lib1.cpp b/tests/auto/api/testdata/export-simple/lib1.cpp
index 2b22d4993..7981edf92 100644
--- a/tests/auto/api/testdata/export-simple/lib1.cpp
+++ b/tests/auto/api/testdata/export-simple/lib1.cpp
@@ -27,10 +27,10 @@
****************************************************************************/
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT int lib1_hello()
{
- puts("lib1 says hello!");
+ std::puts("lib1 says hello!");
return 0;
}
diff --git a/tests/auto/api/testdata/export-simple/main.cpp b/tests/auto/api/testdata/export-simple/main.cpp
index 820e6f3bc..060037b82 100644
--- a/tests/auto/api/testdata/export-simple/main.cpp
+++ b/tests/auto/api/testdata/export-simple/main.cpp
@@ -27,13 +27,12 @@
****************************************************************************/
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT int lib1_hello();
int main()
{
- puts("application says hello!");
+ std::puts("application says hello!");
return lib1_hello();
}
-
diff --git a/tests/auto/api/testdata/lib-same-source/main.cpp b/tests/auto/api/testdata/lib-same-source/main.cpp
index 47e1013f9..c9602f59f 100644
--- a/tests/auto/api/testdata/lib-same-source/main.cpp
+++ b/tests/auto/api/testdata/lib-same-source/main.cpp
@@ -26,9 +26,9 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
int main()
{
- puts("Hello WOrld!");
+ std::puts("Hello WOrld!");
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic1.cpp b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic1.cpp
index ed5f822fb..555c91afe 100644
--- a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic1.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic1.cpp
@@ -1,4 +1,4 @@
-#include <stdio.h>
+#include <cstdio>
#include "../dllexport.h"
@@ -7,6 +7,6 @@ void static1_hello();
DLL_EXPORT int dynamic1_hello()
{
static1_hello();
- puts("dynamic1 says hello!");
+ std::puts("dynamic1 says hello!");
return 0;
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic2.cpp b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic2.cpp
index b2db5d23e..d5fcbaab4 100644
--- a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic2.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic2.cpp
@@ -1,10 +1,10 @@
#include "../dllexport.h"
#include "static2.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void dynamic2_hello()
{
TestMe tm;
tm.hello();
- puts("dynamic2 says hello!");
+ std::puts("dynamic2 says hello!");
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/main.cpp b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/main.cpp
index 73c0922d6..9b0a190b4 100644
--- a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/main.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/main.cpp
@@ -1,11 +1,11 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT int dynamic1_hello();
int main()
{
int result = dynamic1_hello();
- puts("application says hello!");
+ std::puts("application says hello!");
return result;
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static1.cpp b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static1.cpp
index 81c53bd4e..d07910f96 100644
--- a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static1.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static1.cpp
@@ -1,10 +1,10 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT void dynamic2_hello();
void static1_hello()
{
dynamic2_hello();
- puts("static1 says hello!");
+ std::puts("static1 says hello!");
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static2.cpp b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static2.cpp
index 073b13609..99a60be0c 100644
--- a/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static2.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs-staticlibs/static2.cpp
@@ -1,7 +1,7 @@
#include "static2.h"
-#include <stdio.h>
+#include <cstdio>
void TestMe::hello() const
{
- puts("static2 says hello!");
+ std::puts("static2 says hello!");
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs/lib1.cpp b/tests/auto/api/testdata/link-dynamiclibs/lib1.cpp
index 14666cf58..e2e943b37 100644
--- a/tests/auto/api/testdata/link-dynamiclibs/lib1.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs/lib1.cpp
@@ -27,13 +27,13 @@
****************************************************************************/
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT void lib2_hello();
DLL_EXPORT int lib1_hello()
{
- puts("lib1 says hello!");
+ std::puts("lib1 says hello!");
lib2_hello();
return 0;
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs/lib2.cpp b/tests/auto/api/testdata/link-dynamiclibs/lib2.cpp
index 01938b16b..f8bf990a3 100644
--- a/tests/auto/api/testdata/link-dynamiclibs/lib2.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs/lib2.cpp
@@ -27,13 +27,13 @@
****************************************************************************/
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT void lib3_hello();
DLL_EXPORT void lib2_hello()
{
- puts("lib2 says hello!");
+ std::puts("lib2 says hello!");
lib3_hello();
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs/lib3.cpp b/tests/auto/api/testdata/link-dynamiclibs/lib3.cpp
index b90a99981..ff2d351ba 100644
--- a/tests/auto/api/testdata/link-dynamiclibs/lib3.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs/lib3.cpp
@@ -27,11 +27,11 @@
****************************************************************************/
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void lib3_hello()
{
- puts("lib3 says hello!");
+ std::puts("lib3 says hello!");
}
DLL_EXPORT char* lib3_greeting()
diff --git a/tests/auto/api/testdata/link-dynamiclibs/lib4.cpp b/tests/auto/api/testdata/link-dynamiclibs/lib4.cpp
index 2d66e40f6..ebb97afc9 100644
--- a/tests/auto/api/testdata/link-dynamiclibs/lib4.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs/lib4.cpp
@@ -34,10 +34,10 @@ TestMe::TestMe()
void TestMe::hello1() const
{
- puts("lib4 says hello!");
+ std::puts("lib4 says hello!");
}
void TestMe::hello2Impl() const
{
- puts("lib4 says hello inline!");
+ std::puts("lib4 says hello inline!");
}
diff --git a/tests/auto/api/testdata/link-dynamiclibs/lib4.h b/tests/auto/api/testdata/link-dynamiclibs/lib4.h
index 63258b2ea..69bde04ec 100644
--- a/tests/auto/api/testdata/link-dynamiclibs/lib4.h
+++ b/tests/auto/api/testdata/link-dynamiclibs/lib4.h
@@ -30,7 +30,7 @@
#define LIB4_H
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
#ifdef TEST_LIB
# define LIB_EXPORT DLL_EXPORT
diff --git a/tests/auto/api/testdata/link-dynamiclibs/main.cpp b/tests/auto/api/testdata/link-dynamiclibs/main.cpp
index 64f7948cb..b6165d30f 100644
--- a/tests/auto/api/testdata/link-dynamiclibs/main.cpp
+++ b/tests/auto/api/testdata/link-dynamiclibs/main.cpp
@@ -26,14 +26,14 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
#include <lib4.h>
DLL_IMPORT int lib1_hello();
int main()
{
- puts("application says hello!");
+ std::puts("application says hello!");
TestMe test;
test.hello1();
test.hello2();
diff --git a/tests/auto/api/testdata/link-static-lib/main.cpp b/tests/auto/api/testdata/link-static-lib/main.cpp
index 5f6aed0b9..2d94a4b0b 100644
--- a/tests/auto/api/testdata/link-static-lib/main.cpp
+++ b/tests/auto/api/testdata/link-static-lib/main.cpp
@@ -26,7 +26,7 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
int bla();
diff --git a/tests/auto/api/testdata/link-static-lib/mystaticlib.cpp b/tests/auto/api/testdata/link-static-lib/mystaticlib.cpp
index 71777ef05..0b5d02fd4 100644
--- a/tests/auto/api/testdata/link-static-lib/mystaticlib.cpp
+++ b/tests/auto/api/testdata/link-static-lib/mystaticlib.cpp
@@ -26,12 +26,13 @@
**
****************************************************************************/
-#include <stdio.h>
#include <helper1.h>
+#include <cstdio>
+
int bla()
{
int n = getSomeNumber();
- printf("Hello World! The magic number is %d.", n);
+ std::printf("Hello World! The magic number is %d.", n);
return n;
}
diff --git a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic1.cpp b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic1.cpp
index 3f8a5f8d7..b4379f8c9 100644
--- a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic1.cpp
+++ b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic1.cpp
@@ -1,11 +1,11 @@
#include "../dllexport.h"
#include "static2.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT int dynamic1_hello()
{
TestMe tm;
tm.hello();
- puts("dynamic1 says hello!");
+ std::puts("dynamic1 says hello!");
return 1;
}
diff --git a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic2.cpp b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic2.cpp
index 75594185e..3511b4759 100644
--- a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic2.cpp
+++ b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/dynamic2.cpp
@@ -1,7 +1,7 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void dynamic2_hello()
{
- puts("dynamic2 says hello!");
+ std::puts("dynamic2 says hello!");
}
diff --git a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/main.cpp b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/main.cpp
index 4b8193341..b9e522ac4 100644
--- a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/main.cpp
+++ b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/main.cpp
@@ -1,10 +1,10 @@
-#include <stdio.h>
+#include <cstdio>
void static1_hello();
int main()
{
static1_hello();
- puts("application says hello!");
+ std::puts("application says hello!");
return 0;
}
diff --git a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static1.cpp b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static1.cpp
index a3058c63b..320344f91 100644
--- a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static1.cpp
+++ b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static1.cpp
@@ -1,10 +1,11 @@
#include "../dllexport.h"
-#include <stdio.h>
+
+#include <cstdio>
DLL_IMPORT int dynamic1_hello();
void static1_hello()
{
int n = dynamic1_hello();
- printf("static%d says hello!\n", n);
+ std::printf("static%d says hello!\n", n);
}
diff --git a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static2.cpp b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static2.cpp
index 374bf7ceb..88c6d2a3f 100644
--- a/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static2.cpp
+++ b/tests/auto/api/testdata/link-staticlibs-dynamiclibs/static2.cpp
@@ -1,11 +1,11 @@
#include "../dllexport.h"
#include "static2.h"
-#include <stdio.h>
+#include <cstdio>
DLL_IMPORT void dynamic2_hello();
void TestMe::hello() const
{
dynamic2_hello();
- puts("static2 says hello!");
+ std::puts("static2 says hello!");
}
diff --git a/tests/auto/api/testdata/properties-blocks/main.cpp b/tests/auto/api/testdata/properties-blocks/main.cpp
index 5473bffa7..a01a5850e 100644
--- a/tests/auto/api/testdata/properties-blocks/main.cpp
+++ b/tests/auto/api/testdata/properties-blocks/main.cpp
@@ -26,7 +26,7 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
#ifndef HAVE_MAIN_CPP
# error missing define HAVE_MAIN_CPP
@@ -38,9 +38,8 @@
int main()
{
#ifdef _DEBUG
- puts("Hello World! (debug version)");
+ std::puts("Hello World! (debug version)");
#else
- puts("Hello World! (release version)");
+ std::puts("Hello World! (release version)");
#endif
}
-
diff --git a/tests/auto/blackbox/testdata/distribution-include-paths/main.cpp b/tests/auto/blackbox/testdata/distribution-include-paths/main.cpp
index e449173d3..10d376a31 100644
--- a/tests/auto/blackbox/testdata/distribution-include-paths/main.cpp
+++ b/tests/auto/blackbox/testdata/distribution-include-paths/main.cpp
@@ -1,4 +1,4 @@
-#include <stdio.h>
+#include <cstdio>
#include <gagagugu.h>
int main()
diff --git a/tests/auto/blackbox/testdata/host-os-properties/main.cpp b/tests/auto/blackbox/testdata/host-os-properties/main.cpp
index b0c239e20..129c16379 100644
--- a/tests/auto/blackbox/testdata/host-os-properties/main.cpp
+++ b/tests/auto/blackbox/testdata/host-os-properties/main.cpp
@@ -1,7 +1,7 @@
-#include <stdio.h>
+#include <cstdio>
int main() {
- printf("HOST_ARCHITECTURE = %s\n", HOST_ARCHITECTURE);
- printf("HOST_PLATFORM = %s\n", HOST_PLATFORM);
+ std::printf("HOST_ARCHITECTURE = %s\n", HOST_ARCHITECTURE);
+ std::printf("HOST_PLATFORM = %s\n", HOST_PLATFORM);
return 0;
}
diff --git a/tests/auto/blackbox/testdata/ld/main.cpp b/tests/auto/blackbox/testdata/ld/main.cpp
index fd6b72f3b..bcf293705 100644
--- a/tests/auto/blackbox/testdata/ld/main.cpp
+++ b/tests/auto/blackbox/testdata/ld/main.cpp
@@ -27,10 +27,11 @@
****************************************************************************/
#include "coreutils.h"
-#include <stdio.h>
+
+#include <cstdio>
int main(int argc, char *argv[])
{
- printf("%d\n", foo());
+ std::printf("%d\n", foo());
return 0;
}
diff --git a/tests/auto/blackbox/testdata/plugin-dependency/helper1.cpp b/tests/auto/blackbox/testdata/plugin-dependency/helper1.cpp
index 72331da80..15a3e0d86 100644
--- a/tests/auto/blackbox/testdata/plugin-dependency/helper1.cpp
+++ b/tests/auto/blackbox/testdata/plugin-dependency/helper1.cpp
@@ -1,4 +1,4 @@
-#include <stdio.h>
+#include <cstdio>
#if defined(_WIN32) || defined(WIN32)
# define EXPORT __declspec(dllexport)
@@ -12,5 +12,5 @@
EXPORT void helper1_hello()
{
- puts("helper1 says hello!");
+ std::puts("helper1 says hello!");
}
diff --git a/tests/auto/blackbox/testdata/plugin-dependency/helper2.cpp b/tests/auto/blackbox/testdata/plugin-dependency/helper2.cpp
index cdcdfc942..dccd72a04 100644
--- a/tests/auto/blackbox/testdata/plugin-dependency/helper2.cpp
+++ b/tests/auto/blackbox/testdata/plugin-dependency/helper2.cpp
@@ -1,7 +1,7 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void helper2_hello()
{
- puts("Hello from helper2!");
+ std::puts("Hello from helper2!");
}
diff --git a/tests/auto/blackbox/testdata/plugin-dependency/plugin1.cpp b/tests/auto/blackbox/testdata/plugin-dependency/plugin1.cpp
index 2535bd85e..8cf7e3851 100644
--- a/tests/auto/blackbox/testdata/plugin-dependency/plugin1.cpp
+++ b/tests/auto/blackbox/testdata/plugin-dependency/plugin1.cpp
@@ -1,7 +1,7 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void plugin1_hello()
{
- puts("plugin1 says hello!");
+ std::puts("plugin1 says hello!");
}
diff --git a/tests/auto/blackbox/testdata/plugin-dependency/plugin2.cpp b/tests/auto/blackbox/testdata/plugin-dependency/plugin2.cpp
index fb2030d60..9efc83e2b 100644
--- a/tests/auto/blackbox/testdata/plugin-dependency/plugin2.cpp
+++ b/tests/auto/blackbox/testdata/plugin-dependency/plugin2.cpp
@@ -1,7 +1,7 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void plugin2_hello()
{
- puts("plugin2 says hello!");
+ std::puts("plugin2 says hello!");
}
diff --git a/tests/auto/blackbox/testdata/plugin-dependency/plugin3.cpp b/tests/auto/blackbox/testdata/plugin-dependency/plugin3.cpp
index 8a9f5ee76..0e08ac85a 100644
--- a/tests/auto/blackbox/testdata/plugin-dependency/plugin3.cpp
+++ b/tests/auto/blackbox/testdata/plugin-dependency/plugin3.cpp
@@ -1,7 +1,7 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void plugin3_hello()
{
- puts("plugin3 says hello!");
+ std::puts("plugin3 says hello!");
}
diff --git a/tests/auto/blackbox/testdata/plugin-dependency/plugin4.cpp b/tests/auto/blackbox/testdata/plugin-dependency/plugin4.cpp
index 4663247fa..cee2362ec 100644
--- a/tests/auto/blackbox/testdata/plugin-dependency/plugin4.cpp
+++ b/tests/auto/blackbox/testdata/plugin-dependency/plugin4.cpp
@@ -1,7 +1,7 @@
#include "../dllexport.h"
-#include <stdio.h>
+#include <cstdio>
DLL_EXPORT void plugin4_hello()
{
- puts("plugin4 says hello!");
+ std::puts("plugin4 says hello!");
}
diff --git a/tests/auto/blackbox/testdata/proper quoting/main.cpp b/tests/auto/blackbox/testdata/proper quoting/main.cpp
index 22cafeaa9..6e9be6df1 100644
--- a/tests/auto/blackbox/testdata/proper quoting/main.cpp
+++ b/tests/auto/blackbox/testdata/proper quoting/main.cpp
@@ -26,16 +26,16 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
int bla();
int main()
{
- printf(DEFINE"\n");
- printf(DEFINEWITHSPACE"\n");
- printf(DEFINEWITHTAB"\n");
- printf(DEFINEWITHBACKSLASH"\n");
+ std::printf(DEFINE"\n");
+ std::printf(DEFINEWITHSPACE"\n");
+ std::printf(DEFINEWITHTAB"\n");
+ std::printf(DEFINEWITHBACKSLASH"\n");
return bla();
}
diff --git a/tests/auto/blackbox/testdata/proper quoting/my static lib.cpp b/tests/auto/blackbox/testdata/proper quoting/my static lib.cpp
index e7490e807..7c07fd4c9 100644
--- a/tests/auto/blackbox/testdata/proper quoting/my static lib.cpp
+++ b/tests/auto/blackbox/testdata/proper quoting/my static lib.cpp
@@ -26,12 +26,13 @@
**
****************************************************************************/
-#include <stdio.h>
#include <some helper.h>
+#include <cstdio>
+
int bla()
{
int n = getSomeNumber();
- printf("Hello World! The magic number is %d.", n);
+ std::printf("Hello World! The magic number is %d.", n);
return n;
}
diff --git a/tests/auto/blackbox/testdata/symbolLinkMode/lib.cpp b/tests/auto/blackbox/testdata/symbolLinkMode/lib.cpp
index 8d96f5094..9dcb48738 100644
--- a/tests/auto/blackbox/testdata/symbolLinkMode/lib.cpp
+++ b/tests/auto/blackbox/testdata/symbolLinkMode/lib.cpp
@@ -3,9 +3,9 @@ int somefunction()
return 42;
}
-#include <stdio.h>
+#include <cstdio>
static const auto func = []() {
- printf("Lib was loaded!\n");
+ std::printf("Lib was loaded!\n");
return 0;
}();
diff --git a/tests/auto/blackbox/testdata/symbolLinkMode/main.cpp b/tests/auto/blackbox/testdata/symbolLinkMode/main.cpp
index 801491634..4d847ba19 100644
--- a/tests/auto/blackbox/testdata/symbolLinkMode/main.cpp
+++ b/tests/auto/blackbox/testdata/symbolLinkMode/main.cpp
@@ -1,15 +1,15 @@
extern WEAK_IMPORT int somefunction();
extern void indirect();
-#include <stdio.h>
+#include <cstdio>
int main()
{
- printf("meow\n");
+ std::printf("meow\n");
if (&somefunction != nullptr)
- printf("somefunction existed and it returned %d\n", somefunction());
+ std::printf("somefunction existed and it returned %d\n", somefunction());
else
- printf("somefunction did not exist\n");
+ std::printf("somefunction did not exist\n");
#if SHOULD_INSTALL_LIB
indirect();
#endif
diff --git a/tests/auto/blackbox/testdata/system-include-paths/main.cpp b/tests/auto/blackbox/testdata/system-include-paths/main.cpp
index e449173d3..10d376a31 100644
--- a/tests/auto/blackbox/testdata/system-include-paths/main.cpp
+++ b/tests/auto/blackbox/testdata/system-include-paths/main.cpp
@@ -1,4 +1,4 @@
-#include <stdio.h>
+#include <cstdio>
#include <gagagugu.h>
int main()