forked from qt-creator/qt-creator
CppTools: Tests: Stop writing into source dir
Instead, always write into a unique temporary directory in QDir::tempPath(). Where applicable, read the test source from files instead of first writing the file. Some clean ups in test_codegen*. Change-Id: Id48dc50c6ca16252edfd9fc8a86ba0de9f9be486 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
cb3c7538be
commit
6cafc424e8
@@ -0,0 +1,3 @@
|
||||
#include <NotResolvable1>
|
||||
#include <NotResolvable2>
|
||||
#include "/some/nonexisting/file123.h"
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "file.h"
|
||||
#include "fileother.h"
|
||||
#include <lib/file.h>
|
||||
#include <lib/fileother.h>
|
||||
#include "otherlib/file.h"
|
||||
#include "otherlib/fileother.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <except>
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "file.h"
|
||||
#include "fileother.h"
|
||||
#include <lib/file.h>
|
||||
#include <lib/fileother.h>
|
||||
#include "otherlib/file.h"
|
||||
#include "otherlib/fileother.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <except>
|
||||
@@ -0,0 +1,24 @@
|
||||
#include "header.h"
|
||||
|
||||
#include "file.h"
|
||||
#include "fileother.h"
|
||||
|
||||
#include <lib/fileother.h>
|
||||
#include <lib/file.h>
|
||||
|
||||
#include "otherlib/file.h"
|
||||
#include "otherlib/fileother.h"
|
||||
|
||||
#include "utils/utils.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QString>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <except>
|
||||
|
||||
#include <iostream>
|
||||
#include "stuff"
|
||||
#include <except>
|
||||
@@ -0,0 +1,4 @@
|
||||
#define SOMEDEFINE 1
|
||||
#if SOMEDEFINE == 1
|
||||
int someNumber;
|
||||
#endif
|
||||
@@ -0,0 +1,2 @@
|
||||
#include "header.h"
|
||||
#include "notresolvable.h"
|
||||
Reference in New Issue
Block a user