From 69202aeeb9b6c8ab1794968dfb9286fe9a1a0006 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 5 Mar 2017 14:13:21 +0100 Subject: [PATCH] Merged xs/t/*_config.t into one single .t file --- xs/t/15_config.t | 11 ++++++++++- xs/t/23_config.t | 17 ----------------- 2 files changed, 10 insertions(+), 18 deletions(-) delete mode 100644 xs/t/23_config.t diff --git a/xs/t/15_config.t b/xs/t/15_config.t index 3a7ad0de6..256fa539f 100644 --- a/xs/t/15_config.t +++ b/xs/t/15_config.t @@ -4,7 +4,7 @@ use strict; use warnings; use Slic3r::XS; -use Test::More tests => 146; +use Test::More tests => 147; use Data::Dumper; foreach my $config (Slic3r::Config->new, Slic3r::Config::Static::new_FullPrintConfig) { @@ -242,4 +242,13 @@ foreach my $config (Slic3r::Config->new, Slic3r::Config::Static::new_FullPrintCo is_deeply $config->get('retract_layer_change'), [0,0], 'retract_layer_change is disabled with spiral_vase'; } +{ + use Cwd qw(abs_path); + use File::Basename qw(dirname); + my $class = Slic3r::Config->new; + my $path = abs_path($0); + my $config = $class->_load(dirname($path)."/inc/22_config_bad_config_options.ini"); + ok 1, 'did not crash on reading invalid items in config'; +} + __END__ diff --git a/xs/t/23_config.t b/xs/t/23_config.t deleted file mode 100644 index 1201f1942..000000000 --- a/xs/t/23_config.t +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/perl -use strict; -use warnings; - -use Slic3r::XS; - -use Test::More tests => 1; -{ - use Cwd qw(abs_path); - use File::Basename qw(dirname); - my $class = Slic3r::Config->new; - my $path = abs_path($0); - my $config = $class->_load(dirname($path)."/inc/22_config_bad_config_options.ini"); - ok 1, 'did not crash on reading invalid items in config'; -} - -__END__