X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=src%2Fcore%2Ftests%2FFunctionTest.cxx;h=17d3b72ad2fcaf3e45d75d15e6affd34c73a3de0;hb=9d118e5302db0c9aefe6b0e662795aef6f7b71a1;hp=5357bb906aab3f5e6c6ace6b7d770b0f683cb1d8;hpb=9f53c415cf1554e2d9cc040d3d646ec22fe281f6;p=frida%2Ffrida.git diff --git a/src/core/tests/FunctionTest.cxx b/src/core/tests/FunctionTest.cxx index 5357bb9..17d3b72 100644 --- a/src/core/tests/FunctionTest.cxx +++ b/src/core/tests/FunctionTest.cxx @@ -1,12 +1,14 @@ #include -#include "gui/qt.hxx" +#include "qt.hxx" #include "core/InformationManager.hxx" #include "core/BasicBlock.hxx" #include "core/Function.hxx" +extern char * TEST_DATA_DIRECTORY; + TEST(FunctionTest, deserializeValidInstance) { - QFile file("testdata/core/Function/valid.xml"); + QFile file(QString("%1/%2").arg(TEST_DATA_DIRECTORY, "/core/Function/valid.xml")); InformationManager manager; file.open(QFile::ReadOnly | QFile::Text); QXmlStreamReader reader(&file);