source: tests/corelib/unixroot/unixroot.cpp@ 1165

Last change on this file since 1165 was 1144, checked in by Dmitry A. Kuminov, 12 years ago

tests: Added a bunch of corelib tests.

File size: 1.4 KB
Line 
1#include <QtCore>
2
3#include <QDebug>
4
5#include <stdlib.h>
6#include <InnoTekLIBC/pathrewrite.h>
7
8#define STR(expr) #expr
9#define DBG(expr) STR(expr) << "=" << (expr)
10
11////////////////////////////////////////////////////////////////////////////////
12
13int main(int argc, char *argv[])
14{
15 char buf[260];
16
17 qDebug() << DBG((_abspath(buf, "/@unixroot/usr", sizeof(buf)), buf));
18 qDebug() << DBG((_fullpath(buf, "/@unixroot/usr", sizeof(buf)), buf));
19 qDebug() << DBG(realpath("/@unixroot/usr", buf));
20
21 qDebug() << DBG((_fullpath(buf, "D:/@unixroot/usr", sizeof(buf)), buf));