diff --git a/util/selftest.pl b/util/selftest.pl index daa7ebc3a..0849737ac 100644 --- a/util/selftest.pl +++ b/util/selftest.pl @@ -65,10 +65,10 @@ print OUT "\n"; print "Checking compiler...\n"; if (open(TEST,">test.c")) { - print TEST "#include \nmain(){printf(\"Hello world\n\");}\n"; + print TEST "#include \nmain(){printf(\"Hello world\\n\");}\n"; 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; }