C++: test for walking includes in frameworks.

Change-Id: Id31ce6b40d72351cfaefa5035469b87662526853
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Erik Verbruggen
2012-12-20 15:53:12 +01:00
parent fcf586974f
commit fa7ab13f30
14 changed files with 101 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Versions/A/Frameworks
+1
View File
@@ -0,0 +1 @@
Versions/A/Headers
@@ -0,0 +1 @@
Versions/Current/Headers
@@ -0,0 +1,4 @@
#ifndef IncorrectVersion_h
#define IncorrectVersion_h
#endif // IncorrectVersion_h
@@ -0,0 +1,6 @@
#ifndef Nested_h
#define Nested_h
#include "IncorrectVersion.h"
#endif // Nested_h
@@ -0,0 +1,4 @@
#ifndef CorrectVersion_h
#define CorrectVersion_h
#endif // CorrectVersion_h
@@ -0,0 +1,6 @@
#ifndef Nested_h
#define Nested_h
#include "CorrectVersion.h"
#endif // Nested_h
@@ -0,0 +1,6 @@
#ifndef MyHeader_h
#define MyHeader_h
#include <Nested/Nested.h>
#endif // MyHeader_h
@@ -0,0 +1 @@
A
+4
View File
@@ -0,0 +1,4 @@
#ifndef HEADER_H
#define HEADER_H
#endif // HEADER_H
@@ -0,0 +1,19 @@
#include <My/MyHeader.h>
#ifndef MyHeader_h
bool failure_MyHeader_not_included;
#endif
#ifndef Nested_h
bool failure_Nested_header_not_included;
#endif
#ifdef IncorrectVersion_h
bool failure_Incorrect_version_of_nested_header_included;
#endif
#ifdef CorrectVersion_h
bool success_is_the_only_option;
#endif