Changeset 9b20126 in mainline for uspace/lib/pcut/tests/abort.c
- Timestamp:
- 2014-09-19T08:23:01Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c85a57f
- Parents:
- 15d0046
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/abort.c
r15d0046 r9b20126 28 28 29 29 #include <pcut/pcut.h> 30 #include "tested.h"30 #include <stdlib.h> 31 31 32 32 PCUT_INIT 33 33 34 34 PCUT_TEST(access_null_pointer) { 35 int a = 5; 36 int *p = &a; 37 PCUT_ASSERT_INT_EQUALS(5, *p); 38 p = NULL; 39 PCUT_ASSERT_INT_EQUALS(5, *p); 35 abort(); 40 36 } 41 37
Note:
See TracChangeset
for help on using the changeset viewer.