Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kirubaspace committed Oct 19, 2023
1 parent 5db1911 commit 782a271
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/windows/stumpless.def
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,4 @@ EXPORTS
stumpless_unload_param @207
vstumpless_load_entry @208
stumpless_prival_from_string @209
stumpless_get_severity_enum_from_buffer @210
2 changes: 2 additions & 0 deletions test/function/severity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,14 @@ namespace {

TEST( GetSeverityEnumFromBuffer, InvalidMemSeverity ) {
int result;
const struct stumpless_error *error;
void * (*set_malloc_result)(size_t);
set_malloc_result = stumpless_set_malloc( MALLOC_FAIL );
ASSERT_NOT_NULL( set_malloc_result );

result = stumpless_get_severity_enum_from_buffer( "info", sizeof("info") );
EXPECT_EQ( result, -1 );
EXPECT_ERROR_ID_EQ( STUMPLESS_MEMORY_ALLOCATION_FAILURE );

set_malloc_result = stumpless_set_malloc( malloc );
EXPECT_TRUE( set_malloc_result == malloc );
Expand Down

0 comments on commit 782a271

Please sign in to comment.