Tweaks for 'make check': Don't assume location of perl, or existence of /etc/hosts
This commit is contained in:
parent
8bd86fe60d
commit
aaee78c061
|
@ -14,5 +14,5 @@ uninstall-hook:
|
|||
|
||||
check:
|
||||
rm -Rf $(top_srcdir)/src/test-harness/twtest
|
||||
cd $(top_srcdir)/src/test-harness && ./twtest.pl
|
||||
cd $(top_srcdir)/src/test-harness && perl ./twtest.pl
|
||||
$(top_srcdir)/bin/twtest all
|
||||
|
|
|
@ -810,7 +810,7 @@ uninstall-hook:
|
|||
|
||||
check:
|
||||
rm -Rf $(top_srcdir)/src/test-harness/twtest
|
||||
cd $(top_srcdir)/src/test-harness && ./twtest.pl
|
||||
cd $(top_srcdir)/src/test-harness && perl ./twtest.pl
|
||||
$(top_srcdir)/bin/twtest all
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
|
|
|
@ -47,17 +47,15 @@ using namespace std;
|
|||
|
||||
void TestFileUtil()
|
||||
{
|
||||
if(cFileUtil::FileExists("/etc/hosts"))
|
||||
{
|
||||
TSTRING source, dest;
|
||||
|
||||
TSTRING source, dest;
|
||||
|
||||
source = _T("/etc/hosts");
|
||||
dest = _T("/tmp/dest");
|
||||
bool blah = cFileUtil::Copy(source, dest);
|
||||
(void)blah;
|
||||
|
||||
|
||||
// TCOUT << _T("<") << wstr3 << _T(">") << std::endl;
|
||||
|
||||
|
||||
source = _T("/etc/hosts");
|
||||
dest = _T("/tmp/dest");
|
||||
bool blah = cFileUtil::Copy(source, dest);
|
||||
(void)blah;
|
||||
// TCOUT << _T("<") << wstr3 << _T(">") << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue