mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed unittest.pl - more portable
This commit is contained in:
2
INSTALL
2
INSTALL
@@ -1,7 +1,7 @@
|
|||||||
Installation Instructions
|
Installation Instructions
|
||||||
*************************
|
*************************
|
||||||
|
|
||||||
Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
|
Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation,
|
||||||
Inc.
|
Inc.
|
||||||
|
|
||||||
Copying and distribution of this file, with or without modification,
|
Copying and distribution of this file, with or without modification,
|
||||||
|
|||||||
@@ -158,6 +158,9 @@
|
|||||||
*/
|
*/
|
||||||
#undef LT_OBJDIR
|
#undef LT_OBJDIR
|
||||||
|
|
||||||
|
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
|
||||||
|
#undef NO_MINUS_C_MINUS_O
|
||||||
|
|
||||||
/* Name of package */
|
/* Name of package */
|
||||||
#undef PACKAGE
|
#undef PACKAGE
|
||||||
|
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ temporarily disabled
|
|||||||
</test>
|
</test>
|
||||||
<test check-verify-decrypt-from-alicia>
|
<test check-verify-decrypt-from-alicia>
|
||||||
cmd = $pcp -V vb -c -d -I testsig -x b
|
cmd = $pcp -V vb -c -d -I testsig -x b
|
||||||
expect = /Unittests.*Verified/s
|
expect = /Verified/s
|
||||||
</test>
|
</test>
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use lib qw(lib);
|
|||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
eval {
|
eval {
|
||||||
use IPC::Run qw( run timeout);
|
require IPC::Run;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ sub run3 {
|
|||||||
else {
|
else {
|
||||||
@c = split /\s\s*/, $cmd;
|
@c = split /\s\s*/, $cmd;
|
||||||
}
|
}
|
||||||
my $ret = run \@c, \$input, \$o, \$e, timeout( $timeout );
|
my $ret = IPC::Run::run( \@c, \$input, \$o, \$e, IPC::Run::timeout( $timeout ));
|
||||||
$$output = $o;
|
$$output = $o;
|
||||||
$$error = $e;
|
$$error = $e;
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user