Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-02-10 02:14:32 +0400
committerAlessandro Ranellucci <aar@cpan.org>2014-02-10 02:14:32 +0400
commit634ccb33ab5218dfc38323b62c75bdd57fedff3a (patch)
tree3db63a8a33d2c87347126fa1ddb42fe1e8b08fb5 /t/config.t
parentbba69ed22f06677672757d1a8991fc98efb4445b (diff)
Fix regression in Config->setenv affecting post-processing scripts. Includes regression test
Diffstat (limited to 't/config.t')
-rw-r--r--t/config.t20
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__