Configure Test Code for Isolator++ Professional
|Top Previous Next|
Test Project Setup:
In your test code:
In the test code add before any standard header inclusion:
In your Makefile:
Isolator++ Professional requires these compilation flags:
There are 2 options to link with Typemock library:
Note: When linking with the static library, libisolator.so must be in LD_LIBRARY_PATH or use -rpath=/usr/lib64/typemock
Note: Link order might cause different results. Link Isolator++ Professional as first as possible.
Note: If you gcc version is greater then 6 you need to add the flag "-no-pie"
GCCVERSIONGTEQ6 := $(shell expr gcc -dumpversion | cut -f1 -d. \>= 6)
ifeq "$(GCCVERSIONGTEQ6)" "1"
NO_PIE := -no-pie
endifLD_FLAGS = $(NO_PIE)
Run The Tests
Once everything is set, in order to run the tests, Isolator++ Professional requires setting environment variable LD_BIND_NOW to 1.
Copyright Typemock Ltd. 2009-2020. All Rights Reserved.