diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-02-10 02:14:32 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-02-10 02:14:32 +0400 |
commit | 634ccb33ab5218dfc38323b62c75bdd57fedff3a (patch) | |
tree | 3db63a8a33d2c87347126fa1ddb42fe1e8b08fb5 /t/config.t | |
parent | bba69ed22f06677672757d1a8991fc98efb4445b (diff) |
Fix regression in Config->setenv affecting post-processing scripts. Includes regression test
Diffstat (limited to 't/config.t')
-rw-r--r-- | t/config.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/config.t b/t/config.t new file mode 100644 index 000000000..c9af472c7 --- /dev/null +++ b/t/config.t @@ -0,0 +1,20 @@ +use Test::More tests => 1; +use strict; +use warnings; + +BEGIN { + use FindBin; + use lib "$FindBin::Bin/../lib"; +} + +use Slic3r; +use Slic3r::Test; + +{ + my $config = Slic3r::Config->new_from_defaults; + $config->set('layer_height', 0.123); + $config->setenv; + is $ENV{SLIC3R_LAYER_HEIGHT}, '0.123', 'setenv'; +} + +__END__ |