diff options
author | hawcroft <derick.hawcroft@nokia.com> | 2010-04-21 01:33:28 (GMT) |
---|---|---|
committer | hawcroft <derick.hawcroft@nokia.com> | 2010-04-21 01:43:43 (GMT) |
commit | a0b0ccdb8c72439d624696bd476a1d1ae722bc90 (patch) | |
tree | bcf790794ef488b274e772b8d042243025a21393 /tests/auto/qaudioinput | |
parent | 7f70505d3d768948fbc92fa55ecd590823764bec (diff) | |
download | Qt-a0b0ccdb8c72439d624696bd476a1d1ae722bc90.zip Qt-a0b0ccdb8c72439d624696bd476a1d1ae722bc90.tar.gz Qt-a0b0ccdb8c72439d624696bd476a1d1ae722bc90.tar.bz2 |
Compile on symbian:
Symbian can't seem to handle defines declared in pro files
defined as string literals.
e.g DEFINES += FOO when FOO is then initialized as a
string literal e.g DEFINES += FOO="bar" fails be
included as a valid define during compilation.
Reviewed-by:TrustMe
Diffstat (limited to 'tests/auto/qaudioinput')
-rw-r--r-- | tests/auto/qaudioinput/qaudioinput.pro | 2 | ||||
-rw-r--r-- | tests/auto/qaudioinput/tst_qaudioinput.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qaudioinput/qaudioinput.pro b/tests/auto/qaudioinput/qaudioinput.pro index f545a11..5eb1613 100644 --- a/tests/auto/qaudioinput/qaudioinput.pro +++ b/tests/auto/qaudioinput/qaudioinput.pro @@ -10,6 +10,6 @@ wince* { DEFINES += SRCDIR=\\\"\\\" QT += gui } else { - DEFINES += SRCDIR=\\\"$$PWD/\\\" + !symbian:DEFINES += SRCDIR=\\\"$$PWD/\\\" } diff --git a/tests/auto/qaudioinput/tst_qaudioinput.cpp b/tests/auto/qaudioinput/tst_qaudioinput.cpp index 40b7fbb..84c3874 100644 --- a/tests/auto/qaudioinput/tst_qaudioinput.cpp +++ b/tests/auto/qaudioinput/tst_qaudioinput.cpp @@ -46,6 +46,9 @@ #include <qaudio.h> #include <qaudioformat.h> +#if defined(Q_OS_SYMBIAN) +#define SRCDIR "" +#endif class tst_QAudioInput : public QObject { @@ -130,7 +133,7 @@ void tst_QAudioInput::notifyInterval() void tst_QAudioInput::pullFile() { if(available) { - QFile filename(SRCDIR "test.raw"); + QFile filename(SRCDIR"test.raw"); filename.open( QIODevice::WriteOnly | QIODevice::Truncate ); QSignalSpy readSignal(audio, SIGNAL(notify())); |