- Timestamp:
- Jun 2, 2022, 3:11:21 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- ced5e2a
- Parents:
- 015925a (diff), fc134a48 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 5 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/attributes.nast.x64.txt
r015925a re5d9274 1339 1339 } 1340 1340 1341 { 1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */); 1343 } 1344 1345 return _X4_retM12__anonymous4_2; 1341 return (*_X4_dstM12__anonymous4_2); 1346 1342 } 1347 1343 { -
tests/.expect/attributes.nast.x86.txt
r015925a re5d9274 1339 1339 } 1340 1340 1341 { 1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */); 1343 } 1344 1345 return _X4_retM12__anonymous4_2; 1341 return (*_X4_dstM12__anonymous4_2); 1346 1342 } 1347 1343 { -
tests/.expect/attributes.oast.x64.txt
r015925a re5d9274 1339 1339 } 1340 1340 1341 { 1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */); 1343 } 1344 1345 return _X4_retM12__anonymous4_2; 1341 return (*_X4_dstM12__anonymous4_2); 1346 1342 } 1347 1343 { -
tests/.expect/attributes.oast.x86.txt
r015925a re5d9274 1339 1339 } 1340 1340 1341 {1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */);1343 }1344 1345 1341 return _X4_retM12__anonymous4_2; 1346 1342 } -
tests/.expect/quasiKeyword.txt
r015925a re5d9274 1 quasiKeyword.cfa:5 4:25: warning: Compiled1 quasiKeyword.cfa:52:25: warning: Compiled -
tests/exceptions/defaults.cfa
r015925a re5d9274 2 2 3 3 #include <string.h> 4 #include <exception.hfa>5 4 6 5 exception log_message { … … 8 7 }; 9 8 10 _EHM_DEFINE_COPY(log_message, ) 9 // Manually define the virtual table and helper functions. 10 void copy(log_message * this, log_message * that) { 11 *this = *that; 12 } 13 11 14 const char * msg(log_message * this) { 12 15 return this->msg; 13 16 } 14 _EHM_VIRTUAL_TABLE(log_message, , log_vt); 17 18 const struct log_message_vtable log_vt @= { 19 .__cfavir_typeid : &__cfatid_log_message, 20 .size : sizeof(struct log_message), 21 .copy : copy, 22 .^?{} : ^?{}, 23 .msg : msg, 24 }; 15 25 16 26 // Logging messages don't have to be handled. -
tests/include/.expect/includes.nast.txt
r015925a re5d9274 1 include/includes.cfa:1 69:25: warning: Compiled1 include/includes.cfa:173:25: warning: Compiled -
tests/include/includes.cfa
r015925a re5d9274 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 10 16:36:44202213 // Update Count : 77 612 // Last Modified On : Sun May 22 08:27:20 2022 13 // Update Count : 779 14 14 // 15 15 … … 47 47 #endif 48 48 #include <execinfo.h> 49 #include <expat.h> 49 #if __has_include( "expat.h" ) 50 #include <expat.h> // may not be installed 50 51 #include <expat_external.h> 52 #endif 51 53 #include <fcntl.h> 52 54 #include <features.h> … … 79 81 //#include <link.h> // CFA bug #240 nested anonymous enum fails 80 82 #include <locale.h> 81 #include <ltdl.h> 83 #if __has_include( "ltdl.h" ) 84 #include <ltdl.h> // may not be installed 85 #endif 82 86 //#include <malloc.h> // cannot include in extern "C" because of CFA #include_next 83 87 #include <math.h> -
tests/linking/exception-nothreads.cfa
r015925a re5d9274 15 15 16 16 #include <stdlib.hfa> 17 #include <exception.hfa>18 17 19 EHM_EXCEPTION(ping)();20 EHM_VIRTUAL_TABLE(ping, ping_vt);18 exception ping {}; 19 vtable(ping) ping_vt; 21 20 22 21 int main(void) { -
tests/linking/exception-withthreads.cfa
r015925a re5d9274 15 15 16 16 #include <stdlib.hfa> 17 #include <exception.hfa>18 17 #include "../exceptions/with-threads.hfa" 19 18 20 EHM_EXCEPTION(ping)();21 EHM_VIRTUAL_TABLE(ping, ping_vt);19 exception ping {}; 20 vtable(ping) ping_vt; 22 21 23 22 int main(void) { -
tests/pybin/settings.py
r015925a re5d9274 201 201 global output_width 202 202 output_width = max(map(lambda t: len(t.target()), tests)) 203 # 35 is the maximum width of the name field before we get line wrapping. 204 output_width = min(output_width, 35) -
tests/pybin/test_run.py
r015925a re5d9274 43 43 return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, self.name) ) 44 44 45 def format_target(self, width): 46 target = self.target() 47 length = len(target) 48 if length < width: 49 return '{0:{width}}'.format(target, width=width) 50 elif length == width: 51 return target 52 else: 53 return '...' + target[3-width:] 54 45 55 @staticmethod 46 56 def valid_name(name): -
tests/quasiKeyword.cfa
r015925a re5d9274 4 4 // quasiKeyword.cfa -- test that quasi-keywords can be used for variable and functions names, as well as keywords in 5 5 // control structures. 6 // 6 // 7 7 // Author : Peter A. Buhr 8 8 // Created On : Wed Feb 17 10:33:49 2021 … … 10 10 // Last Modified On : Sat Jun 5 10:07:59 2021 11 11 // Update Count : 8 12 // 12 // 13 13 14 #include <exception.hfa> 15 16 EHM_EXCEPTION( E )(); 14 exception E {}; 17 15 18 16 void catch( int i ) {} … … 49 47 } fixup ( E * ) { 50 48 } finally { 51 } 49 } 52 50 else catch = 3; 53 51 -
tests/test.py
r015925a re5d9274 132 132 parser.add_argument('--install', help='Run all tests based on installed binaries or tree binaries', type=comma_separated(yes_no), default='no') 133 133 parser.add_argument('--continue', help='When multiple specifications are passed (debug/install/arch), sets whether or not to continue if the last specification failed', type=yes_no, default='yes', dest='continue_') 134 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=1 20)134 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=180) 135 135 parser.add_argument('--global-timeout', help='Maximum cumulative duration in seconds after the ALL tests are considered to have timed out', type=int, default=7200) 136 136 parser.add_argument('--timeout-with-gdb', help='Instead of killing the command when it times out, orphan it and print process id to allow gdb to attach', type=yes_no, default="no") … … 252 252 try : 253 253 # print formated name 254 name_txt = '{0:{width}} '.format(t.target(), width=settings.output_width)254 name_txt = t.format_target(width=settings.output_width) + ' ' 255 255 256 256 retcode, error, duration = run_single_test(t)
Note:
See TracChangeset
for help on using the changeset viewer.