From a3530859e9a7423db0b6839f15538f248aaf4a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 25 Sep 2013 16:23:45 +0200 Subject: Expose QTest::currentAppName() and remove hard-coded argv[0] in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Except where we're actually testing QCoreApplication::applicationName() and friends. Change-Id: I25514884c11f43a4f82b1f818f822dc3d79f69a3 Reviewed-by: Tor Arne Vestbø --- .../corelib/io/qprocess-noapplication/tst_qprocessnoapplication.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/auto/corelib/io/qprocess-noapplication') diff --git a/tests/auto/corelib/io/qprocess-noapplication/tst_qprocessnoapplication.cpp b/tests/auto/corelib/io/qprocess-noapplication/tst_qprocessnoapplication.cpp index 33146cafd1..21d03cd04d 100644 --- a/tests/auto/corelib/io/qprocess-noapplication/tst_qprocessnoapplication.cpp +++ b/tests/auto/corelib/io/qprocess-noapplication/tst_qprocessnoapplication.cpp @@ -70,8 +70,7 @@ void tst_QProcessNoApplication::initializationDeadlock() } }; - static char argv0[] = "tst_QProcessNoApplication"; - char *argv[] = { argv0, 0 }; + char *argv[] = { const_cast(QTest::currentAppName()), 0 }; int argc = 1; QCoreApplication app(argc, argv); MyThread thread; -- cgit v1.2.3