Skip to content

Commit

Permalink
Add separate license file (issue #29)
Browse files Browse the repository at this point in the history
Fix bug in tests (lack of volatile) (Issue #28)
  • Loading branch information
mvandervoord committed Mar 8, 2024
1 parent 3667ee2 commit 18d020c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,3 @@ configuration, you may want to run the included test suite. This is the test sui
projects we've used it on) that we use to make sure that things actually work the way we claim.
The test suite makes use of Ceedling, which uses the Unity Test Framework. It will require a native C compiler.
The example makefile and rakefile both use gcc.

License
=======

*This software is licensed under the MIT License:
Copyright (c) 2007-2021 Mark VanderVoord*

*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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.*

*_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._*
24 changes: 24 additions & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2007-2024 Mark VanderVoord

https://opensource.org/license/mit/

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:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

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.
6 changes: 3 additions & 3 deletions test/TestException.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void test_CanHaveNestedTryBlocksInASingleFunction_ThrowInside(void)

void test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside(void)
{
int i = 0;
volatile int i = 0;
CEXCEPTION_T e;

Try
Expand Down Expand Up @@ -343,7 +343,7 @@ void test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch(vo

void test_AbilityToExitTryWithoutThrowingAnError(void)
{
int i=0;
volatile int i=0;
CEXCEPTION_T e;

Try
Expand All @@ -364,7 +364,7 @@ void test_AbilityToExitTryWithoutThrowingAnError(void)

void test_AbilityToExitTryWillOnlyExitOneLevel(void)
{
int i=0;
volatile int i=0;
CEXCEPTION_T e;
CEXCEPTION_T e2;

Expand Down

0 comments on commit 18d020c

Please sign in to comment.