*** empty log message ***
[openssl.git] / util / selftest.pl
index daa7ebc3a7523038b454099a16751c088ea4bb4a..0849737ace2f8d1a4886e98d40a08a899950424f 100644 (file)
@@ -65,10 +65,10 @@ print OUT "\n";
 
 print "Checking compiler...\n";
 if (open(TEST,">test.c")) {
 
 print "Checking compiler...\n";
 if (open(TEST,">test.c")) {
-    print TEST "#include <stdio.h>\nmain(){printf(\"Hello world\n\");}\n";
+    print TEST "#include <stdio.h>\nmain(){printf(\"Hello world\\n\");}\n";
     close(TEST);
     system("$cc -o cctest test.c");
     close(TEST);
     system("$cc -o cctest test.c");
-    if (! `./cctest` =~ /Hello world/) {
+    if (`./cctest` !~ /Hello world/) {
        print OUT "Compiler doesn't work.\n";
        goto err;
     }
        print OUT "Compiler doesn't work.\n";
        goto err;
     }