diff options
author | Bodo Möller <bodo@openssl.org> | 2000-02-24 09:48:12 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-02-24 09:48:12 +0000 |
commit | 331b59214b5d747e088dfd1d99dfa4deb5976786 (patch) | |
tree | 4114c60dea96c6ec4e94f9255dff67fa361d1df7 /util/selftest.pl | |
parent | 4c5fac4ac4352f4487f2b8cd4660b40bdd0b8f86 (diff) |
Avoid filename "test.c" because otherwise "make test"
will invoke a default rule built into make.
Diffstat (limited to 'util/selftest.pl')
-rw-r--r-- | util/selftest.pl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/selftest.pl b/util/selftest.pl index beb36b1a9e..91e962a312 100644 --- a/util/selftest.pl +++ b/util/selftest.pl @@ -75,21 +75,21 @@ print OUT "Compiler: $cversion\n"; print OUT "\n"; print "Checking compiler...\n"; -if (open(TEST,">test.c")) { +if (open(TEST,">cctest.c")) { print TEST "#include <stdio.h>\nmain(){printf(\"Hello world\\n\");}\n"; close(TEST); - system("$cc -o cctest test.c"); + system("$cc -o cctest cctest.c"); if (`./cctest` !~ /Hello world/) { print OUT "Compiler doesn't work.\n"; goto err; } } else { - print OUT "Can't create test.c\n"; + print OUT "Can't create cctest.c\n"; } -if (open(TEST,">test.c")) { +if (open(TEST,">cctest.c")) { print TEST "#include <openssl/opensslv.h>\nmain(){printf(OPENSSL_VERSION_TEXT);}\n"; close(TEST); - system("$cc -o cctest -Iinclude test.c"); + system("$cc -o cctest -Iinclude cctest.c"); $cctest = `./cctest`; if ($cctest !~ /OpenSSL $version/) { if ($cctest =~ /OpenSSL/) { @@ -100,7 +100,7 @@ if (open(TEST,">test.c")) { goto err; } } else { - print OUT "Can't create test.c\n"; + print OUT "Can't create cctest.c\n"; } print "Running make...\n"; |