From: Philippe Waroquiers Date: Fri, 11 Nov 2016 14:26:54 +0000 (+0000) Subject: Locally define vgPlain_scrcmp in 2 unit tests X-Git-Tag: svn/VALGRIND_3_13_0~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa630a31696a501a95c12ac3765b473fba03a0b8;p=thirdparty%2Fvalgrind.git Locally define vgPlain_scrcmp in 2 unit tests Humph, this should have been part of : 16122 Add VG_(strIsMemberXA) in pub_tool_xarray.h which means that between 16122 and this revision, these 2 unit tests will (very probably) not compile. That will make bissect not easy :( git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16126 --- diff --git a/drd/tests/unit_bitmap.c b/drd/tests/unit_bitmap.c index 6e8064a701..5778753a65 100644 --- a/drd/tests/unit_bitmap.c +++ b/drd/tests/unit_bitmap.c @@ -44,6 +44,8 @@ void VG_(assert_fail)(Bool isCore, const HChar* assertion, const HChar* file, abort(); } +Int VG_(strcmp)( const HChar* s1, const HChar* s2 ) +{ return strcmp(s1, s2); } void* VG_(memset)(void *s, Int c, SizeT sz) { return memset(s, c, sz); } void* VG_(memcpy)(void *d, const void *s, SizeT sz) diff --git a/memcheck/tests/unit_oset.c b/memcheck/tests/unit_oset.c index 6b82445a50..eb7b34fc70 100644 --- a/memcheck/tests/unit_oset.c +++ b/memcheck/tests/unit_oset.c @@ -28,6 +28,7 @@ #define vgPlain_memset memset #define vgPlain_memcpy memcpy #define vgPlain_memmove memmove +#define vgPlain_strcmp strcmp // Crudely replace some functions (in m_xarray.c, but not needed for // this unit test) by (hopefully) failing asserts.