Skip to content

Commit 18d020c

Browse files
committed
Add separate license file (issue #29)
Fix bug in tests (lack of volatile) (Issue #28)
1 parent 3667ee2 commit 18d020c

3 files changed

Lines changed: 27 additions & 14 deletions

File tree

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,3 @@ configuration, you may want to run the included test suite. This is the test sui
234234
projects we've used it on) that we use to make sure that things actually work the way we claim.
235235
The test suite makes use of Ceedling, which uses the Unity Test Framework. It will require a native C compiler.
236236
The example makefile and rakefile both use gcc.
237-
238-
License
239-
=======
240-
241-
*This software is licensed under the MIT License:
242-
Copyright (c) 2007-2021 Mark VanderVoord*
243-
244-
*Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
245-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.*
246-
247-
*_THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE._*

license.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2007-2024 Mark VanderVoord
2+
3+
https://opensource.org/license/mit/
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the "Software"), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

test/TestException.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void test_CanHaveNestedTryBlocksInASingleFunction_ThrowInside(void)
281281

282282
void test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside(void)
283283
{
284-
int i = 0;
284+
volatile int i = 0;
285285
CEXCEPTION_T e;
286286

287287
Try
@@ -343,7 +343,7 @@ void test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch(vo
343343

344344
void test_AbilityToExitTryWithoutThrowingAnError(void)
345345
{
346-
int i=0;
346+
volatile int i=0;
347347
CEXCEPTION_T e;
348348

349349
Try
@@ -364,7 +364,7 @@ void test_AbilityToExitTryWithoutThrowingAnError(void)
364364

365365
void test_AbilityToExitTryWillOnlyExitOneLevel(void)
366366
{
367-
int i=0;
367+
volatile int i=0;
368368
CEXCEPTION_T e;
369369
CEXCEPTION_T e2;
370370

0 commit comments

Comments
 (0)