maintcheck: avoid a couple of spurious failures
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 4 May 2012 16:09:02 +0000 (18:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 5 May 2012 08:55:08 +0000 (10:55 +0200)
* t/objcxx-deps.sh, t/objcxx-minidemo.sh: In C++ files, use
"std::cout <<", not "cout <<", to avoid triggering a spurious
failure by the syntax check 'sc_tests_here_document_format'.

Cherry-picked from yesterday's commit v1.12-81-g7f3f467, that
had erroneously been applied to 'master' only rather than to
'maint'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/objcxx-deps.sh
t/objcxx-minidemo.sh

index 24665cc..782193a 100755 (executable)
@@ -33,7 +33,6 @@ END
 
 cat > baz.h++ << 'END'
 #include <iostream>
-using namespace std;
 #include "baz2.hh"
 END
 
@@ -46,7 +45,7 @@ cat > bar.mm << 'END'
 #import "baz.h++"
 int main (void)
 {
-    cout << MSG << "\n";
+    std::cout << MSG << "\n";
     return 0;
 }
 END
index fe93ea6..74e152c 100755 (executable)
@@ -40,10 +40,9 @@ cat > ok.mm << 'END'
 /* The use of #import makes this valid Object C++ but invalid C++. */
 #import <iostream>
 #import <config.h>
-using namespace std;
 int main (void)
 {
-    cout << "Success (" << PACKAGE_STRING << ")\n";
+    std::cout << "Success (" << PACKAGE_STRING << ")\n";
     return 0;
 }
 END