Skip to content

Commit

Permalink
Fixed the memory manager tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Apr 21, 2019
1 parent 5f5543e commit 03fd118
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions docs/ABIComplianceChecker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
**Configure the build:**

```bash
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DSG_HTTPS_SUPPORT=ON -DSG_ABI_COMPLIANCE_CHECKER=ON -DSG_OLD_LIB_DIR=$HOME/libsagui-1.0.0 -DSG_OLD_LIB_VERSION=1.0.0 ..
export SG_OLD_VER="2.3.0" # Change to old release
export SG_NEW_VER="2.4.0" # Change to new release

cmake -DCMAKE_BUILD_TYPE=Debug -DSG_HTTPS_SUPPORT=ON -DSG_ABI_COMPLIANCE_CHECKER=ON -DSG_OLD_LIB_DIR=$HOME/libsagui-${SG_OLD_VER} -DSG_OLD_LIB_VERSION=${SG_OLD_VER} ..
make abi_compliance_checker
```

**Check the generated HTML:**

```bash
xdg-open compat_reports/sagui/1.0.0_to_1.0.1/compat_report.html
xdg-open compat_reports/sagui/${SG_OLD_VER}_to_${SG_NEW_VER}/compat_report.html

# or just open compat_report.html on your browser
```
Expand Down
4 changes: 2 additions & 2 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sudo apt update
sudo apt install clang cmake

# Download latest release
export SG_VER="2.4.0" # change to latest version
export SG_VER="2.4.0" # Change to latest version
wget --continue --content-disposition https://github.com/risoflora/libsagui/archive/v$SG_VER.tar.gz
tar -zxvf libsagui-$SG_VER.tar.gz
cd libsagui-$SG_VER/ && mkdir build && cd build/
Expand Down Expand Up @@ -36,7 +36,7 @@ pacman -S --needed mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
pacman -S --needed mingw-w64-i686-cmake mingw-w64-x86_64-cmake

# Download latest release
export SG_VER="2.4.0" # change to latest version
export SG_VER="2.4.0" # Change to latest version
wget --continue --content-disposition https://github.com/risoflora/libsagui/archive/v$SG_VER.tar.gz
tar -zxvf libsagui-$SG_VER.tar.gz
cd libsagui-$SG_VER/ && mkdir build && cd build/
Expand Down
4 changes: 2 additions & 2 deletions test/test_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ static void test_mm_set(void) {

mm_tester = 0;
ASSERT(sg_malloc(123) == &mm_tester);
ASSERT(mm_tester = 123);
ASSERT(mm_tester == 123);
ASSERT(sg_realloc(&mm_tester, 10) == &mm_tester);
ASSERT(mm_tester = 133);
ASSERT(mm_tester == 133);
sg_free(&mm_tester);
ASSERT(mm_tester == 0);

Expand Down

0 comments on commit 03fd118

Please sign in to comment.