unload11.gms : Check that GAMS does not crash when writing to non-existing folder

Description

This test checks that GAMS does not crash when writing a GDX or txt file
to a non-existing folder.

Contributor: Lutz Westermann, March 2014


Small Model of Type : GAMS


Category : GAMS Test library


Main file : unload11.gms

$title 'Check that GAMS does not crash when writing to non-existing folder' (UNLOAD11,SEQ=645)

$ontext
This test checks that GAMS does not crash when writing a GDX or txt file
to a non-existing folder.

Contributor: Lutz Westermann, March 2014
$offtext

set i /i1/;

$gdxout xx/x/gdx
$unload i
$clearError

execute_unload 'doesNotExist/x.gdx', i;
execerror = 0;

file fx / 'doesNotExist/x.txt' /;
putclose fx 'test';