test/test_physfs.pl
author David Yip <dwyip@peach-bun.com>
Mon, 15 Aug 2016 00:50:58 -0500
changeset 1375 20ee02ea086c
parent 1242 1e6db80d2393
permissions -rwxr-xr-x
Remove unused variable in zip_hash_ancestors. Under gcc 5.4.0, this generates unused variable warnings, which in combination with -Werror causes a compile error.

#!/usr/bin/perl -w

use strict;
use warnings;
use physfs;

print "testing PhysicsFS Perl bindings...\n";

print "init...\n";
physfs::init("$0") or die("physfs::init('$0'): ".physfs::getLastError()."\n");

print "user dir: ", physfs::getUserDir(), "\n";
print "base dir: ", physfs::getBaseDir(), "\n";
print "pref dir: ", physfs::getPrefDir("icculus.org", "test_physfs"), "\n";

print "deinit...\n";
physfs::deinit();

print "done!\n";
exit 0;