summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocess/testSetWorkingDirectory/main.cpp
blob: 86f5d65a46cc01f5ab3099b2d4a629d59bc876c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0


#include <QCoreApplication>
#include <QByteArray>
#include <QDir>

int main(int argc, char **argv)
{
    QCoreApplication app(argc, argv);
    QByteArray currentPath = QDir::currentPath().toLocal8Bit();
    fprintf(stdout, "%s", currentPath.constData());
    app.exit();
}