summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2012-02-09 12:43:33 +0100
committerJoerg Bornemann <joerg.bornemann@nokia.com>2012-02-09 12:43:33 +0100
commitc30429fcc2303289dbe0466190619b74a91bc5e2 (patch)
treeadb99b98101ece50ed6349c2d3dd010b710eef94 /tests
parentb1d1b08ca501df90a62c38ae5af822a6a9f7a0e8 (diff)
ParserTest::fileNameMacros fixed
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 30e3a0f..c85c45a 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -752,7 +752,7 @@ void ParserTest::fileNameMacros()
target = mkfile->target(QLatin1String("macros.mk"));
QVERIFY(target);
target->expandFileNameMacros();
- QCOMPARE(target->m_commands.count(), 8);
+ QCOMPARE(target->m_commands.count(), 4);
command = target->m_commands.at(0);
QCOMPARE(command.m_commandLine, QLatin1String("echo $(@D) ."));
command = target->m_commands.at(1);
@@ -761,14 +761,6 @@ void ParserTest::fileNameMacros()
QCOMPARE(command.m_commandLine, QLatin1String("echo $(@F) macros.mk"));
command = target->m_commands.at(3);
QCOMPARE(command.m_commandLine, QLatin1String("echo $(@R) macros"));
- command = target->m_commands.at(4);
- QCOMPARE(command.m_commandLine, QLatin1String("echo $(@D) ."));
- command = target->m_commands.at(5);
- QCOMPARE(command.m_commandLine, QLatin1String("echo $(@B) macros"));
- command = target->m_commands.at(6);
- QCOMPARE(command.m_commandLine, QLatin1String("echo $(@F) macros.mk"));
- command = target->m_commands.at(7);
- QCOMPARE(command.m_commandLine, QLatin1String("echo $(@R) macros"));
const QString currentPath = QDir::currentPath().replace('/', '\\');
target = mkfile->target(currentPath + QLatin1String("\\infrules.mk"));