1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2008 - INRIA - Allan CORNET
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
10 // <-- Non-regression test for bug 2085 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=2085
15 // <-- Short Description -->
16 // this example fails on some pc ???
18 // exec SCI/modules/dynamic_link/tests/nonreg_tests/bug_2085.tst;
22 test_path = get_absolute_file_path('bug_2085.tst');
30 mkdir(OS_TMP_DIR,'bug_2085');
31 TEST_DIR = OS_TMP_DIR + filesep() + 'bug_2085';
33 copyfile(SCI+'/modules/dynamic_link/tests/nonreg_tests/bug_2085.c' , TEST_DIR + filesep() + 'bug_2085.c');
38 ilib_build('bug',['ex2c_1','intex2c'],files,[]);
40 // load the shared library
45 //using the new primitive
50 res = (2 * r) +%i*(nr *3);
52 assert_checkequal(a, res);
54 // ulink() all libraries
59 // =============================================================================