Finished the SLIC3R_HAS_BROKEN_CROAK magic.
This commit is contained in:
parent
eb61373b69
commit
2e53c06159
@ -7,6 +7,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
@ -23,7 +24,7 @@ void confess_at(const char *file, int line, const char *func, const char *format
|
|||||||
strcat(dest, "\r\n Closing the application.\r\n");
|
strcat(dest, "\r\n Closing the application.\r\n");
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
::MessageBoxA(NULL, dest, "Slic3r Prusa Edition", MB_OK | MB_ICONERROR);
|
::MessageBoxA(NULL, dest, "Slic3r Prusa Edition", MB_OK | MB_ICONERROR);
|
||||||
#endif;
|
#endif
|
||||||
|
|
||||||
// Give up.
|
// Give up.
|
||||||
printf(dest);
|
printf(dest);
|
||||||
|
@ -6,6 +6,11 @@ use warnings;
|
|||||||
use Slic3r::XS;
|
use Slic3r::XS;
|
||||||
use Test::More tests => 1;
|
use Test::More tests => 1;
|
||||||
|
|
||||||
|
if ($ENV{SLIC3R_HAS_BROKEN_CROAK})
|
||||||
|
{
|
||||||
|
ok 1, 'SLIC3R_HAS_BROKEN_CROAK set, croaks and confesses from a C++ code will lead to an application exit!';
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
eval {
|
eval {
|
||||||
Slic3r::xspp_test_croak_hangs_on_strawberry();
|
Slic3r::xspp_test_croak_hangs_on_strawberry();
|
||||||
|
Loading…
Reference in New Issue
Block a user