Skip to content

Commit

Permalink
[v2.0.1] Merge branch 'patch' (Fixes critical issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Sep 19, 2015
2 parents d75eb4f + 4e5d416 commit 9f8d297
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0
current_version = 2.0.1
commit = False

[bumpversion:file:CMakeLists.txt]
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endif ()

# Project setup & environment variables

set(PROJECT_VERSION "2.0.0")
set(PROJECT_VERSION "2.0.1")
set(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
set(GettextTranslate_ALL 1)
set(GettextTranslate_GMO_BINARY 1)
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-09-19 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>

* criterion: version 2.0.1
* Fix: Fixed wrong setjmp() usage making tests compiled with optimisations
crash.

2015-09-14 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>

* criterion: version 2.0.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ the user would have with other frameworks:

## Downloads

* [Linux (x86_64)](https://github.com/Snaipe/Criterion/releases/download/v2.0.0/criterion-v2.0.0-linux-x86_64.tar.bz2)
* [OS X (x86_64)](https://github.com/Snaipe/Criterion/releases/download/v2.0.0/criterion-v2.0.0-osx-x86_64.tar.bz2)
* [Windows (x86_64)](https://github.com/Snaipe/Criterion/releases/download/v2.0.0/criterion-v2.0.0-windows-x86_64.tar.bz2)
* [Linux (x86_64)](https://github.com/Snaipe/Criterion/releases/download/v2.0.1/criterion-v2.0.1-linux-x86_64.tar.bz2)
* [OS X (x86_64)](https://github.com/Snaipe/Criterion/releases/download/v2.0.1/criterion-v2.0.1-osx-x86_64.tar.bz2)
* [Windows (x86_64)](https://github.com/Snaipe/Criterion/releases/download/v2.0.1/criterion-v2.0.1-windows-x86_64.tar.bz2)

If you have a different platform, you can still [build the library from source](http://criterion.readthedocs.org/en/latest/setup.html#installation)

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0.0_b{build}-{branch}
version: 2.0.1_b{build}-{branch}

os: Visual Studio 2015

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# built documents.
#
# The short X.Y version.
version = '2.0.0'
version = '2.0.1'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
4 changes: 0 additions & 4 deletions src/abort.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

jmp_buf g_pre_test;

int setup_abort_test(void) {
return !setjmp(g_pre_test);
}

void criterion_abort_test(void) {
longjmp(g_pre_test, 1);
}
2 changes: 0 additions & 2 deletions src/abort.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@

extern jmp_buf g_pre_test;

int setup_abort_test(void);

#endif /* !ABORT_H_ */
2 changes: 1 addition & 1 deletion src/runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void run_test_child(struct criterion_test *test,
send_event(PRE_TEST, NULL, 0);

struct timespec_compat ts;
if (setup_abort_test()) {
if (!setjmp(g_pre_test)) {
timer_start(&ts);
(test->test ? test->test : nothing)();
}
Expand Down

0 comments on commit 9f8d297

Please sign in to comment.