diff options
Diffstat (limited to 'Tests/StringFileTest')
-rw-r--r-- | Tests/StringFileTest/InputFile.h.in | 4 | ||||
-rw-r--r-- | Tests/StringFileTest/StringFile.cxx | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/StringFileTest/InputFile.h.in b/Tests/StringFileTest/InputFile.h.in index c7c1995..3e70a36 100644 --- a/Tests/StringFileTest/InputFile.h.in +++ b/Tests/StringFileTest/InputFile.h.in @@ -5,6 +5,10 @@ /* This should be configured to a commented undef with the curlies in place */ #cmakedefine TEST_NOT_DEFINED ${TEST_NOT_DEFINED} +/* This complicated line should be configured unchanged: */ +static const char* configvar = +"@$@$junk =~ s/#$xyz#/$foo_bar{$wibble}->{$xyz}/;@@"; + int CheckMethod(const char* var, const char* val ) { if ( !var ) diff --git a/Tests/StringFileTest/StringFile.cxx b/Tests/StringFileTest/StringFile.cxx index 0601aa0..609ebaf 100644 --- a/Tests/StringFileTest/StringFile.cxx +++ b/Tests/StringFileTest/StringFile.cxx @@ -24,6 +24,8 @@ int main(int, char*[]) res += CheckMethod(tuvar, "CMAKE"); res += CheckMethod(tlvar, "cmake"); res += CheckMethod(relpath, "../../X11R6/bin/xnest"); + res += CheckMethod(configvar, + "@$@$junk =~ s/#$xyz#/$foo_bar{$wibble}->{$xyz}/;@@"); return res; } |