File: 09_dynaloader.t

package info (click to toggle)
eperl 2.2.14-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,164 kB
  • ctags: 348
  • sloc: ansic: 4,680; sh: 1,425; perl: 551; makefile: 378
file content (23 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

require "TEST.pl";
&TEST::init;

print "1..1\n";

#   setup test files

$testfile1 = &TEST::tmpfile(<<'EOT');
foo
<: 
use Socket; 
$proto = getprotobyname('tcp');
$proto = 0;
:>
quux
EOT

$rc = &TEST::system("../eperl $testfile1 >/dev/null");
print ($rc == 0 ? "ok\n" : "not ok\n");

&TEST::cleanup;